Updated packages and fixed warnings pertaining to exported types
All checks were successful
Build and Push Development Docker Image / build-and-push (push) Successful in 1m34s
All checks were successful
Build and Push Development Docker Image / build-and-push (push) Successful in 1m34s
This commit is contained in:
parent
051cd42fdb
commit
d9e8b4b56c
1885
package-lock.json
generated
1885
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
21
package.json
21
package.json
@ -14,16 +14,17 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rollup/plugin-json": "^6.0.0",
|
"@rollup/plugin-json": "^6.0.0",
|
||||||
"@sveltejs/adapter-auto": "^2.0.0",
|
"@sveltejs/adapter-auto": "6.0.0",
|
||||||
"@sveltejs/adapter-node": "^1.3.1",
|
"@sveltejs/adapter-node": "5.2.12",
|
||||||
"@sveltejs/kit": "^1.20.4",
|
"@sveltejs/kit": "2.20.8",
|
||||||
"prettier": "^2.8.0",
|
"@sveltejs/vite-plugin-svelte": "^5.0.0",
|
||||||
"prettier-plugin-svelte": "^2.10.1",
|
"prettier": "3.5.3",
|
||||||
"svelte": "^4.0.5",
|
"prettier-plugin-svelte": "3.3.3",
|
||||||
"svelte-check": "^3.4.3",
|
"svelte": "5.28.2",
|
||||||
"tslib": "^2.4.1",
|
"svelte-check": "4.1.7",
|
||||||
"typescript": "^5.0.0",
|
"tslib": "2.8.1",
|
||||||
"vite": "^4.4.2"
|
"typescript": "5.8.3",
|
||||||
|
"vite": "6.3.5"
|
||||||
},
|
},
|
||||||
"type": "module"
|
"type": "module"
|
||||||
}
|
}
|
||||||
|
1154
pnpm-lock.yaml
generated
Normal file
1154
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -67,7 +67,7 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="loader">
|
<div class="loader">
|
||||||
<div class="inner one" />
|
<div class="inner one"></div>
|
||||||
<div class="inner two" />
|
<div class="inner two"></div>
|
||||||
<div class="inner three" />
|
<div class="inner three"></div>
|
||||||
</div>
|
</div>
|
@ -1,8 +1,8 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export let style: string = null;
|
export let style: string = "";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<span class="timeline-connector" {style} />
|
<span class="timeline-connector" {style}></span>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.timeline-connector {
|
.timeline-connector {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { getContext, setContext } from 'svelte';
|
import { getContext, setContext } from 'svelte';
|
||||||
import type { TimelinePosition, ParentPosition, TimelineConfig } from '../types';
|
import type { TimelinePosition, ParentPosition, TimelineConfig } from '$lib/types';
|
||||||
|
|
||||||
export let position: ParentPosition | null = null;
|
export let position: ParentPosition | null = null;
|
||||||
export let style: string = null;
|
export let style: string = "";
|
||||||
|
|
||||||
const config = getContext<TimelineConfig>('TimelineConfig');
|
const config = getContext<TimelineConfig>('TimelineConfig');
|
||||||
const itemPosition = position ? position : config.rootPosition;
|
const itemPosition = position ? position : config.rootPosition;
|
||||||
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
<li class={`timeline-item ${itemPosition}`} {style}>
|
<li class={`timeline-item ${itemPosition}`} {style}>
|
||||||
{#if !$$slots['opposite-content']}
|
{#if !$$slots['opposite-content']}
|
||||||
<div class="opposite-block" />
|
<div class="opposite-block"></div>
|
||||||
{:else}
|
{:else}
|
||||||
<slot name="opposite-content" />
|
<slot name="opposite-content" />
|
||||||
{/if}
|
{/if}
|
||||||
|
9
src/lib/types.d.ts
vendored
9
src/lib/types.d.ts
vendored
@ -1,9 +0,0 @@
|
|||||||
type TimelinePosition = 'right' | 'left' | 'alternate';
|
|
||||||
|
|
||||||
type ParentPosition = 'right' | 'left';
|
|
||||||
|
|
||||||
type TimelineConfig = {
|
|
||||||
rootPosition: TimelinePosition;
|
|
||||||
};
|
|
||||||
|
|
||||||
export { TimelinePosition, ParentPosition, TimelineConfig };
|
|
@ -1,3 +1,11 @@
|
|||||||
|
export type TimelinePosition = 'right' | 'left' | 'alternate';
|
||||||
|
|
||||||
|
export type ParentPosition = 'right' | 'left';
|
||||||
|
|
||||||
|
export type TimelineConfig = {
|
||||||
|
rootPosition: TimelinePosition;
|
||||||
|
};
|
||||||
|
|
||||||
export interface GitRepo {
|
export interface GitRepo {
|
||||||
name: string;
|
name: string;
|
||||||
description: string;
|
description: string;
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
<input type="text" name="subject" placeholder="Subject" required>
|
<input type="text" name="subject" placeholder="Subject" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<textarea id="message" name="message" rows="4" required placeholder="Your Message" />
|
<textarea id="message" name="message" rows="4" required placeholder="Your Message"></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Hidden Attributes-->
|
<!-- Hidden Attributes-->
|
||||||
|
@ -1,19 +1,10 @@
|
|||||||
// import adapter from '@sveltejs/adapter-auto';
|
// import adapter from '@sveltejs/adapter-auto';
|
||||||
import adapter from '@sveltejs/adapter-node';
|
import adapter from '@sveltejs/adapter-node';
|
||||||
import { vitePreprocess } from '@sveltejs/kit/vite';
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||||
|
|
||||||
/** @type {import('@sveltejs/kit').Config} */
|
|
||||||
const config = {
|
const config = {
|
||||||
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
|
||||||
// for more information about preprocessors
|
|
||||||
preprocess: vitePreprocess(),
|
preprocess: vitePreprocess(),
|
||||||
|
kit: { adapter: adapter() }
|
||||||
kit: {
|
|
||||||
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
|
|
||||||
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
|
|
||||||
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
|
|
||||||
adapter: adapter()
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"strict": true
|
"strict": true,
|
||||||
|
"moduleResolution": "bundler"
|
||||||
}
|
}
|
||||||
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
|
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user