diff --git a/.gitignore b/.gitignore
index 7e3be73..7d5a785 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,9 @@ node_modules
.vercel_build_output/
package-lock.json
.svench
+
+.DS_STORE
+.cache
+.temp
+node_modules/
+dist/yarn-error.log
diff --git a/.storybook/main.js b/.storybook/main.js
deleted file mode 100644
index 444611d..0000000
--- a/.storybook/main.js
+++ /dev/null
@@ -1,12 +0,0 @@
-const path = require('path');
-
-module.exports = {
- addons: ['@storybook/addon-actions/register'],
- stories: [ '../src/**/*stories.js' ],
- webpackFinal: (config) => {
- config.resolve.alias['~'] = path.resolve(__dirname, '../src/');
- config.resolve.alias['~C'] = path.resolve(__dirname, '../src/components/');
-
- return config;
- }
-};
diff --git a/.vitebook/App.svelte b/.vitebook/App.svelte
new file mode 100644
index 0000000..55e6f11
--- /dev/null
+++ b/.vitebook/App.svelte
@@ -0,0 +1,5 @@
+
+
+
diff --git a/.vitebook/config.js b/.vitebook/config.js
new file mode 100644
index 0000000..a84394a
--- /dev/null
+++ b/.vitebook/config.js
@@ -0,0 +1,31 @@
+import { svelte } from '@sveltejs/vite-plugin-svelte';
+import { clientPlugin, defineConfig } from '@vitebook/client/node';
+import { defaultThemePlugin } from '@vitebook/theme-default/node';
+import preprocess from 'svelte-preprocess';
+
+export default defineConfig({
+ include: ['src/**/*.story.svelte'],
+ alias: {
+ $app: '/node_modules/@sveltejs/kit/assets/app',
+ $lib: '/src/lib',
+ },
+ plugins: [
+ clientPlugin({ appFile: 'App.svelte' }),
+ defaultThemePlugin(),
+ svelte({
+ compilerOptions: {
+ hydratable: true
+ },
+ extensions: ['.svelte'],
+ // Consult https://github.com/sveltejs/svelte-preprocess for more information
+ // about preprocessors.
+ preprocess: preprocess(),
+ }),
+ ],
+ site: {
+ title: '',
+ description: '',
+ /** @type {(import('@vitebook/theme-default/node').DefaultThemeConfig} */
+ theme: {},
+ },
+});
diff --git a/.vitebook/index.html b/.vitebook/index.html
new file mode 100644
index 0000000..a027c25
--- /dev/null
+++ b/.vitebook/index.html
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.vitebook/public/404.svg b/.vitebook/public/404.svg
new file mode 100644
index 0000000..7f86508
--- /dev/null
+++ b/.vitebook/public/404.svg
@@ -0,0 +1,5 @@
+
diff --git a/.vitebook/public/apple-touch-icon.png b/.vitebook/public/apple-touch-icon.png
new file mode 100644
index 0000000..60128d8
Binary files /dev/null and b/.vitebook/public/apple-touch-icon.png differ
diff --git a/.vitebook/public/favicon-16x16.png b/.vitebook/public/favicon-16x16.png
new file mode 100644
index 0000000..1ff4ea4
Binary files /dev/null and b/.vitebook/public/favicon-16x16.png differ
diff --git a/.vitebook/public/favicon-32x32.png b/.vitebook/public/favicon-32x32.png
new file mode 100644
index 0000000..852b0ad
Binary files /dev/null and b/.vitebook/public/favicon-32x32.png differ
diff --git a/.vitebook/public/favicon.ico b/.vitebook/public/favicon.ico
new file mode 100644
index 0000000..63f6e3f
Binary files /dev/null and b/.vitebook/public/favicon.ico differ
diff --git a/.vitebook/public/logo-192x192.png b/.vitebook/public/logo-192x192.png
new file mode 100644
index 0000000..eec91f2
Binary files /dev/null and b/.vitebook/public/logo-192x192.png differ
diff --git a/.vitebook/public/logo-512x512.png b/.vitebook/public/logo-512x512.png
new file mode 100644
index 0000000..50ef1dd
Binary files /dev/null and b/.vitebook/public/logo-512x512.png differ
diff --git a/.vitebook/public/logo.svg b/.vitebook/public/logo.svg
new file mode 100644
index 0000000..2fd73d6
--- /dev/null
+++ b/.vitebook/public/logo.svg
@@ -0,0 +1,4 @@
+
diff --git a/.vitebook/public/manifest.json b/.vitebook/public/manifest.json
new file mode 100644
index 0000000..457791e
--- /dev/null
+++ b/.vitebook/public/manifest.json
@@ -0,0 +1,20 @@
+{
+ "short_name": "",
+ "name": " Site",
+ "icons": [
+ {
+ "src": "logo-192x192.png",
+ "type": "image/png",
+ "sizes": "192x192"
+ },
+ {
+ "src": "logo-512x512.png",
+ "type": "image/png",
+ "sizes": "512x512"
+ }
+ ],
+ "start_url": ".",
+ "display": "standalone",
+ "theme_color": "#ffc107",
+ "background_color": "#212121"
+}
diff --git a/.vitebook/public/robots.txt b/.vitebook/public/robots.txt
new file mode 100644
index 0000000..e9e57dc
--- /dev/null
+++ b/.vitebook/public/robots.txt
@@ -0,0 +1,3 @@
+# https://www.robotstxt.org/robotstxt.html
+User-agent: *
+Disallow:
diff --git a/.vitebook/theme/index.js b/.vitebook/theme/index.js
new file mode 100644
index 0000000..170580c
--- /dev/null
+++ b/.vitebook/theme/index.js
@@ -0,0 +1,3 @@
+import Theme from '@vitebook/theme-default';
+
+export default Theme;
diff --git a/package.json b/package.json
index 2f4b0e3..4517ab0 100644
--- a/package.json
+++ b/package.json
@@ -6,29 +6,33 @@
"build": "svelte-kit build",
"preview": "svelte-kit preview",
"lint": "prettier --check . && eslint --ignore-path .gitignore .",
- "format": "prettier --write ."
+ "format": "prettier --write .",
+ "vitebook:dev": "vitebook dev",
+ "vitebook:build": "vitebook build",
+ "vitebook:preview": "vitebook preview"
},
"devDependencies": {
- "@sveltejs/kit": "^1.0.0-next.115",
- "@sveltejs/vite-plugin-svelte": "^1.0.0-next.10",
- "eslint": "^7.22.0",
- "eslint-config-prettier": "^8.1.0",
- "eslint-plugin-svelte3": "^3.2.0",
- "prettier": "~2.2.1",
- "prettier-plugin-svelte": "^2.2.0",
- "svelte": "^3.34.0",
- "svench": "^0.2.0-14",
- "vite": "^2.3.2"
+ "@sveltejs/adapter-static": "^1.0.0-next.28",
+ "@sveltejs/kit": "^1.0.0-next.288",
+ "@sveltejs/vite-plugin-svelte": "^1.0.0-next.38",
+ "@vitebook/client": "^0.23.2",
+ "@vitebook/core": "^0.23.2",
+ "@vitebook/theme-default": "^0.23.2",
+ "eslint": "^8.10.0",
+ "eslint-config-prettier": "^8.4.0",
+ "eslint-plugin-svelte3": "^3.4.1",
+ "prettier": "~2.5.1",
+ "prettier-plugin-svelte": "^2.6.0",
+ "svelte": "^3.46.4",
+ "vite": "^2.7.0"
},
"type": "module",
"dependencies": {
- "@sveltejs/adapter-node": "^1.0.0-next.18",
- "@sveltejs/adapter-static": "^1.0.0-next.13",
+ "@sveltejs/adapter-node": "^1.0.0-next.0",
"@yanick/updeep": "link:/home/yanick/work/javascript/updeep",
- "bulma": "^0.9.2",
"lodash": "^4.17.21",
- "redux": "^4.1.0",
- "reselect": "^4.0.0",
+ "redux": "^4.1.2",
+ "reselect": "^4.1.5",
"rollup-plugin-analyzer": "^4.0.0",
"ts-action": "^11.0.0",
"updux": "link:/home/yanick/work/javascript/updux/"
diff --git a/src/components/Cost.story.svelte b/src/components/Cost.story.svelte
new file mode 100644
index 0000000..bdbd384
--- /dev/null
+++ b/src/components/Cost.story.svelte
@@ -0,0 +1,5 @@
+
+
+