-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
early scaffolding for migration to sveltekit
- Loading branch information
Showing
33 changed files
with
7,060 additions
and
91 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
.DS_Store | ||
node_modules | ||
/build | ||
|
||
# Output | ||
.output | ||
.vercel | ||
/.svelte-kit | ||
/package | ||
/build | ||
|
||
# OS | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# Env | ||
.env | ||
.env.* | ||
!.env.example | ||
!.env.test | ||
|
||
# Vite | ||
vite.config.js.timestamp-* | ||
vite.config.ts.timestamp-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,4 @@ | ||
.DS_Store | ||
node_modules | ||
/build | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
!.env.example | ||
|
||
# Ignore files for PNPM, NPM and YARN | ||
pnpm-lock.yaml | ||
# Package Managers | ||
package-lock.json | ||
pnpm-lock.yaml | ||
yarn.lock | ||
vite.config.*.timestamp-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
{ | ||
"prettier.documentSelectors": [ | ||
"**/*.svelte" | ||
], | ||
"tailwindCSS.classAttributes": [ | ||
"class", | ||
"accent", | ||
"active", | ||
"animIndeterminate", | ||
"aspectRatio", | ||
"background", | ||
"badge", | ||
"bgBackdrop", | ||
"bgDark", | ||
"bgDrawer", | ||
"bgLight", | ||
"blur", | ||
"border", | ||
"button", | ||
"buttonAction", | ||
"buttonBack", | ||
"buttonClasses", | ||
"buttonComplete", | ||
"buttonDismiss", | ||
"buttonNeutral", | ||
"buttonNext", | ||
"buttonPositive", | ||
"buttonTextCancel", | ||
"buttonTextConfirm", | ||
"buttonTextFirst", | ||
"buttonTextLast", | ||
"buttonTextNext", | ||
"buttonTextPrevious", | ||
"buttonTextSubmit", | ||
"caretClosed", | ||
"caretOpen", | ||
"chips", | ||
"color", | ||
"controlSeparator", | ||
"controlVariant", | ||
"cursor", | ||
"display", | ||
"element", | ||
"fill", | ||
"fillDark", | ||
"fillLight", | ||
"flex", | ||
"flexDirection", | ||
"gap", | ||
"gridColumns", | ||
"height", | ||
"hover", | ||
"inactive", | ||
"indent", | ||
"justify", | ||
"meter", | ||
"padding", | ||
"position", | ||
"regionAnchor", | ||
"regionBackdrop", | ||
"regionBody", | ||
"regionCaption", | ||
"regionCaret", | ||
"regionCell", | ||
"regionChildren", | ||
"regionChipList", | ||
"regionChipWrapper", | ||
"regionCone", | ||
"regionContent", | ||
"regionControl", | ||
"regionDefault", | ||
"regionDrawer", | ||
"regionFoot", | ||
"regionFootCell", | ||
"regionFooter", | ||
"regionHead", | ||
"regionHeadCell", | ||
"regionHeader", | ||
"regionIcon", | ||
"regionInput", | ||
"regionInterface", | ||
"regionInterfaceText", | ||
"regionLabel", | ||
"regionLead", | ||
"regionLegend", | ||
"regionList", | ||
"regionListItem", | ||
"regionNavigation", | ||
"regionPage", | ||
"regionPanel", | ||
"regionRowHeadline", | ||
"regionRowMain", | ||
"regionSummary", | ||
"regionSymbol", | ||
"regionTab", | ||
"regionTrail", | ||
"ring", | ||
"rounded", | ||
"select", | ||
"shadow", | ||
"slotDefault", | ||
"slotFooter", | ||
"slotHeader", | ||
"slotLead", | ||
"slotMessage", | ||
"slotMeta", | ||
"slotPageContent", | ||
"slotPageFooter", | ||
"slotPageHeader", | ||
"slotSidebarLeft", | ||
"slotSidebarRight", | ||
"slotTrail", | ||
"spacing", | ||
"text", | ||
"track", | ||
"transition", | ||
"width", | ||
"zIndex" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import eslint from '@eslint/js'; | ||
import prettier from 'eslint-config-prettier'; | ||
import svelte from 'eslint-plugin-svelte'; | ||
import globals from 'globals'; | ||
import tseslint from 'typescript-eslint'; | ||
|
||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
...svelte.configs['flat/recommended'], | ||
prettier, | ||
...svelte.configs['flat/prettier'], | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node | ||
} | ||
} | ||
}, | ||
{ | ||
files: ['**/*.svelte'], | ||
languageOptions: { | ||
parserOptions: { | ||
parser: tseslint.parser | ||
} | ||
} | ||
}, | ||
{ | ||
ignores: ['build/', '.svelte-kit/', 'dist/'] | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
// See https://kit.svelte.dev/docs/types#app | ||
// for information about these interfaces | ||
declare global { | ||
namespace App { | ||
// interface Error {} | ||
// interface Locals {} | ||
// interface PageData {} | ||
// interface Platform {} | ||
} | ||
// and what to do when importing types | ||
declare namespace App { | ||
// interface Locals {} | ||
// interface PageData {} | ||
// interface Error {} | ||
// interface Platform {} | ||
} | ||
|
||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<html lang="en" class="dark"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="%sveltekit.assets%/favicon.png" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
%sveltekit.head% | ||
</head> | ||
<body data-sveltekit-preload-data="hover"> | ||
<body data-sveltekit-preload-data="hover" data-theme="crimson"> | ||
<div style="display: contents">%sveltekit.body%</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
@tailwind variants; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script lang="ts"> | ||
import '../app.postcss'; | ||
// Floating UI for Popups | ||
import { computePosition, autoUpdate, flip, shift, offset, arrow } from '@floating-ui/dom'; | ||
import { storePopup } from '@skeletonlabs/skeleton'; | ||
storePopup.set({ computePosition, autoUpdate, flip, shift, offset, arrow }); | ||
</script> | ||
|
||
<slot /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
<!-- YOU CAN DELETE EVERYTHING IN THIS PAGE --> | ||
<script lang="ts"> | ||
import { MyCounterButton } from '@repo/ui'; | ||
import { MyCounterButton } from "@repo/ui"; | ||
</script> | ||
|
||
<h1>Web</h1> | ||
<MyCounterButton /> | ||
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p> | ||
|
||
<div class="container h-full mx-auto flex justify-center items-center"> | ||
<div class="space-y-5"> | ||
<h1 class="h1">This is the page</h1> | ||
<MyCounterButton/> | ||
</div> | ||
</div> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.