Merge branch 'vitebook' into version-2
6
.gitignore
vendored
@ -7,3 +7,9 @@ node_modules
|
||||
.vercel_build_output/
|
||||
package-lock.json
|
||||
.svench
|
||||
|
||||
.DS_STORE
|
||||
.cache
|
||||
.temp
|
||||
node_modules/
|
||||
dist/yarn-error.log
|
||||
|
@ -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;
|
||||
}
|
||||
};
|
5
.vitebook/App.svelte
Normal file
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
export let component;
|
||||
</script>
|
||||
|
||||
<svelte:component this={component} />
|
31
.vitebook/config.js
Normal file
@ -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: {},
|
||||
},
|
||||
});
|
18
.vitebook/index.html
Normal file
@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ lang }}">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
<meta name="generator" content="vitebook@{{ version }}" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
||||
<link rel="manifest" href="/manifest.json" />
|
||||
<!--@vitebook/head-->
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="app"><!--@vitebook/app--></div>
|
||||
<!--@vitebook/body-->
|
||||
</body>
|
||||
</html>
|
5
.vitebook/public/404.svg
Normal file
@ -0,0 +1,5 @@
|
||||
<svg width="400" height="163" viewBox="0 0 400 163" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M192.333 4.56055C159.748 4.56055 136.352 25.4677 136.352 74.2511C136.352 129.539 159.748 144.174 192.333 144.174C224.918 144.174 249.708 128.145 249.708 74.2511C249.708 16.6402 224.918 4.56055 192.333 4.56055ZM192.547 125.822C169.978 125.822 158.187 112.58 158.187 74.2868C158.187 40.4983 170.46 22.6801 193.03 22.6801C215.599 22.6801 227.873 34.3842 227.873 74.2868C227.873 111.615 215.117 125.822 192.547 125.822Z" fill="currentColor"/>
|
||||
<path d="M116.842 105.612H103.369V65.936C103.369 63.8286 102.532 61.8076 101.042 60.3175C99.5523 58.8273 97.5314 57.9902 95.4241 57.9902H92.2672C91.2238 57.9902 90.1906 58.1957 89.2266 58.595C88.2627 58.9943 87.3868 59.5796 86.649 60.3175C85.9112 61.0553 85.3259 61.9312 84.9266 62.8953C84.5274 63.8593 84.3218 64.8925 84.3218 65.936V105.612H46.3199C45.5381 105.612 44.7696 105.41 44.0889 105.025C43.4083 104.641 42.8385 104.087 42.435 103.417C42.0315 102.748 41.8079 101.985 41.7859 101.204C41.7639 100.422 41.9442 99.6481 42.3094 98.9568L82.5303 22.8271C83.0317 21.878 83.3356 20.837 83.4237 19.7672C83.5118 18.6973 83.3822 17.6207 83.0427 16.6023C82.7032 15.5839 82.161 14.6449 81.4486 13.8419C80.7362 13.0389 79.8685 12.3886 78.8979 11.9302L76.5235 10.8089C74.6799 9.93827 72.5722 9.80971 70.6364 10.4498C68.7006 11.09 67.085 12.4498 66.1238 14.248L17.0692 106.019C16.2339 107.582 15.7969 109.327 15.7969 111.099V111.099C15.7969 112.514 16.0755 113.915 16.617 115.222C17.1584 116.529 17.952 117.717 18.9524 118.717C19.9529 119.718 21.1406 120.512 22.4477 121.053C23.7548 121.594 25.1558 121.873 26.5706 121.873H84.3218V146.962C84.3218 148.212 84.5682 149.451 85.0468 150.607C85.5254 151.762 86.2269 152.812 87.1113 153.696C87.9957 154.581 89.0456 155.282 90.201 155.761C91.3565 156.24 92.595 156.486 93.8456 156.486H93.8457C95.0963 156.486 96.3348 156.24 97.4903 155.761C98.6457 155.282 99.6956 154.581 100.58 153.696C101.464 152.812 102.166 151.762 102.644 150.607C103.123 149.451 103.369 148.212 103.369 146.962V121.873H116.842C118.998 121.873 121.066 121.017 122.591 119.492C124.116 117.967 124.972 115.899 124.972 113.743V113.743C124.972 111.586 124.116 109.518 122.591 107.993C121.066 106.469 118.998 105.612 116.842 105.612V105.612Z" fill="currentColor"/>
|
||||
<path d="M366.319 105.612H352.846V65.936C352.846 63.8286 352.009 61.8076 350.519 60.3175C349.029 58.8273 347.008 57.9902 344.901 57.9902H341.744C340.7 57.9902 339.667 58.1957 338.703 58.595C337.739 58.9943 336.863 59.5796 336.126 60.3175C335.388 61.0553 334.802 61.9312 334.403 62.8953C334.004 63.8593 333.798 64.8925 333.798 65.936V105.612H295.796C295.015 105.612 294.246 105.41 293.565 105.025C292.885 104.641 292.315 104.087 291.912 103.417C291.508 102.748 291.284 101.985 291.262 101.204C291.24 100.422 291.421 99.6481 291.786 98.9568L332.007 22.8271C332.508 21.878 332.812 20.8371 332.9 19.7672C332.988 18.6973 332.859 17.6207 332.519 16.6023C332.18 15.5839 331.638 14.6449 330.925 13.8419C330.213 13.0389 329.345 12.3886 328.374 11.9302L326 10.8089C324.156 9.93827 322.049 9.80971 320.113 10.4498C318.177 11.09 316.562 12.4498 315.6 14.248L266.546 106.019C265.71 107.582 265.273 109.327 265.273 111.099V111.099C265.273 113.956 266.409 116.697 268.429 118.717C270.449 120.738 273.19 121.873 276.047 121.873H333.798V146.962C333.798 149.488 334.802 151.91 336.588 153.696C338.374 155.483 340.796 156.486 343.322 156.486V156.486C345.848 156.486 348.27 155.483 350.057 153.696C351.843 151.91 352.846 149.488 352.846 146.962V121.873H366.319C368.475 121.873 370.543 121.017 372.068 119.492C373.592 117.967 374.449 115.899 374.449 113.743V113.743C374.449 111.586 373.592 109.518 372.068 107.993C370.543 106.469 368.475 105.612 366.319 105.612Z" fill="currentColor"/>
|
||||
</svg>
|
After Width: | Height: | Size: 3.7 KiB |
BIN
.vitebook/public/apple-touch-icon.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
.vitebook/public/favicon-16x16.png
Normal file
After Width: | Height: | Size: 338 B |
BIN
.vitebook/public/favicon-32x32.png
Normal file
After Width: | Height: | Size: 492 B |
BIN
.vitebook/public/favicon.ico
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
.vitebook/public/logo-192x192.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
.vitebook/public/logo-512x512.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
4
.vitebook/public/logo.svg
Normal file
@ -0,0 +1,4 @@
|
||||
<svg width="32" height="32" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M39.7265 4.50427L39.7265 33.3318H12.3391L28.8049 4.50427H39.7265Z" fill="white" stroke="black" stroke-width="3" stroke-linejoin="bevel"/>
|
||||
<path d="M5.6571 22.6991L17.0572 4.50427H32.2324L25.249 15.1287L38.8616 15.1287L5.6571 44.8828L15.3886 22.6987L5.6571 22.6991Z" fill="currentColor" stroke="black" stroke-width="3" stroke-linejoin="bevel"/>
|
||||
</svg>
|
After Width: | Height: | Size: 456 B |
20
.vitebook/public/manifest.json
Normal file
@ -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"
|
||||
}
|
3
.vitebook/public/robots.txt
Normal file
@ -0,0 +1,3 @@
|
||||
# https://www.robotstxt.org/robotstxt.html
|
||||
User-agent: *
|
||||
Disallow:
|
3
.vitebook/theme/index.js
Normal file
@ -0,0 +1,3 @@
|
||||
import Theme from '@vitebook/theme-default';
|
||||
|
||||
export default Theme;
|
36
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/"
|
||||
|
5
src/components/Cost.story.svelte
Normal file
@ -0,0 +1,5 @@
|
||||
<Cost cost={12}/>
|
||||
|
||||
<script>
|
||||
import Cost from './Cost.svelte';
|
||||
</script>
|