mirror of https://github.com/aotds/aotds-docks.git
65 changed files with 23688 additions and 613 deletions
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
module.exports = { |
||||
root: true, |
||||
extends: ['eslint:recommended', 'prettier'], |
||||
plugins: ['svelte3'], |
||||
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }], |
||||
parserOptions: { |
||||
sourceType: 'module', |
||||
ecmaVersion: 2019 |
||||
}, |
||||
env: { |
||||
browser: true, |
||||
es2017: true, |
||||
node: true |
||||
} |
||||
}; |
@ -1,5 +1,8 @@
@@ -1,5 +1,8 @@
|
||||
.DS_Store |
||||
node_modules |
||||
.nyc_output |
||||
pnpm-lock.yaml |
||||
public/build |
||||
public/bundle.* |
||||
/.svelte |
||||
/build |
||||
/functions |
||||
.svelte-kit/ |
||||
.vercel_build_output/ |
||||
package-lock.json |
||||
|
@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
|
||||
.svelte/** |
||||
static/** |
||||
build/** |
||||
node_modules/** |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
{ |
||||
"useTabs": true, |
||||
"singleQuote": true, |
||||
"trailingComma": "none", |
||||
"printWidth": 100 |
||||
} |
@ -1,44 +0,0 @@
@@ -1,44 +0,0 @@
|
||||
<!DOCTYPE html> |
||||
<html lang="en"> |
||||
<head> |
||||
|
||||
<base href="./" > |
||||
|
||||
<meta charset='utf-8'> |
||||
<meta name='viewport' content='width=device-width,initial-scale=1'> |
||||
|
||||
<title>Svelte app</title> |
||||
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> |
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,600,700"> |
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono"> |
||||
|
||||
<link rel='icon' type='image/png' href='/favicon.png'> |
||||
<link rel='stylesheet' href='./global.css'> |
||||
<link rel='stylesheet' href='./bundle.css'> |
||||
|
||||
<!-- |
||||
<link rel='stylesheet' href='/materialize/materialize.css'> |
||||
<script src="/materialize/materialize.js"></script> |
||||
--> |
||||
|
||||
<script> |
||||
process = { env: { NODE_ENV: 'production' } }; |
||||
</script> |
||||
<script defer src='./bundle.js'></script> |
||||
|
||||
<style> |
||||
.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out} |
||||
@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}} |
||||
</style> |
||||
</head> |
||||
|
||||
<body> |
||||
<!-- github ribbon from https://tholman.com/github-corners/ --> |
||||
<a href="https://github.com/yanick/aotds-shipyard" |
||||
class="github-corner" aria-label="View source on GitHub"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a> |
||||
|
||||
|
||||
<div id="app"></div> |
||||
</body> |
||||
</html> |
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
{ |
||||
"compilerOptions": { |
||||
"baseUrl": ".", |
||||
"paths": { |
||||
"$lib/*": ["src/lib/*"] |
||||
} |
||||
}, |
||||
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"] |
||||
} |
@ -1,139 +1,33 @@
@@ -1,139 +1,33 @@
|
||||
{ |
||||
"author": "Yanick Champoux <yanick@babyl.ca>", |
||||
"dependencies": { |
||||
"@babel/cli": "^7.10.1", |
||||
"@babel/core": "^7.10.2", |
||||
"@babel/node": "^7.10.1", |
||||
"@material/animation": "^7.0.0", |
||||
"@material/base": "^7.0.0", |
||||
"@material/density": "^7.0.0", |
||||
"@material/feature-targeting": "^7.0.0", |
||||
"@material/floating-label": "^7.0.0", |
||||
"@material/line-ripple": "^7.0.0", |
||||
"@material/notched-outline": "^7.0.0", |
||||
"@material/ripple": "^7.0.0", |
||||
"@material/rtl": "^7.0.0", |
||||
"@material/shape": "^7.0.0", |
||||
"@material/textfield": "^6.0.0", |
||||
"@material/theme": "^7.0.0", |
||||
"@material/typography": "^7.0.0", |
||||
"@smui/floating-label": "^1.0.0-beta.21", |
||||
"@smui/line-ripple": "^1.0.0-beta.21", |
||||
"@smui/notched-outline": "^1.0.0-beta.21", |
||||
"@smui/textfield": "^1.0.0-beta.21", |
||||
"@storybook/svelte": "^5.3.19", |
||||
"babel-loader": "^8.1.0", |
||||
"css-loader": "^3.6.0", |
||||
"dart-sass": "^1.25.0", |
||||
"lodash": "^4.17.15", |
||||
"mini-css-extract-plugin": "^0.9.0", |
||||
"node-sass": "^4.14.1", |
||||
"prettier": "2.0.5", |
||||
"prettier-plugin-svelte": "1.1.0", |
||||
"redux": "^4.0.5", |
||||
"reselect": "^4.0.0", |
||||
"rollup-plugin-css-only": "^2.1.0", |
||||
"rollup-plugin-postcss": "^3.1.2", |
||||
"rollup-plugin-scss": "^2.5.0", |
||||
"sass": "^1.26.9", |
||||
"sass-loader": "^8.0.2", |
||||
"sirv-cli": "^0.4.4", |
||||
"style-loader": "^1.2.1", |
||||
"svelte-loader": "^2.13.6", |
||||
"svelte3-redux": "^0.3.0", |
||||
"ts-action": "^11.0.0", |
||||
"updeep": "^1.2.0", |
||||
"updux": "^2.1.0", |
||||
"webpack": "^4.43.0", |
||||
"webpack-cli": "^3.3.12", |
||||
"webpack-dev-server": "^3.11.0" |
||||
}, |
||||
"description": "Full Thrust ship builder", |
||||
"devDependencies": { |
||||
"@rollup/plugin-alias": "^3.1.1", |
||||
"@rollup/plugin-commonjs": "^12.0.0", |
||||
"@rollup/plugin-node-resolve": "^8.0.0", |
||||
"@storybook/addon-actions": "^5.3.19", |
||||
"eslint": "7.4.0", |
||||
"eslint-config-prettier": "6.11.0", |
||||
"eslint-plugin-babel": "5.3.1", |
||||
"eslint-plugin-lodash": "^7.1.0", |
||||
"eslint-plugin-prettier": "3.1.4", |
||||
"eslint-plugin-svelte3": "2.7.3", |
||||
"eslint-plugin-you-dont-need-lodash-underscore": "^6.10.0", |
||||
"file-loader": "^6.0.0", |
||||
"npm-run-all": "^4.1.5", |
||||
"rollup": "^2.3.4", |
||||
"rollup-plugin-livereload": "^1.0.0", |
||||
"rollup-plugin-svelte": "^5.0.3", |
||||
"rollup-plugin-terser": "^5.1.2", |
||||
"svelte": "^3.0.0", |
||||
"svelte-material-ui": "^1.0.0-beta.21", |
||||
"svg-inline-loader": "^0.8.2", |
||||
"tap": "^14.10.7" |
||||
}, |
||||
"eslintConfig": { |
||||
"env": { |
||||
"amd": true, |
||||
"browser": true, |
||||
"es6": true, |
||||
"node": true |
||||
}, |
||||
"extends": [ |
||||
"prettier", |
||||
"eslint:recommended", |
||||
"plugin:you-dont-need-lodash-underscore/compatible", |
||||
"plugin:lodash/recommended" |
||||
], |
||||
"ignorePatterns": [ |
||||
"src/node_modules" |
||||
], |
||||
"overrides": [ |
||||
{ |
||||
"files": [ |
||||
"*.svelte" |
||||
], |
||||
"processor": "svelte3/svelte3" |
||||
} |
||||
], |
||||
"parserOptions": { |
||||
"ecmaFeatures": { |
||||
"modules": true |
||||
}, |
||||
"ecmaVersion": "2020", |
||||
"sourceType": "module" |
||||
}, |
||||
"plugins": [ |
||||
"svelte3" |
||||
], |
||||
"rules": { |
||||
"lodash/prefer-lodash-method": "off" |
||||
} |
||||
}, |
||||
"keywords": [ |
||||
"game" |
||||
], |
||||
"license": "ISC", |
||||
"main": "index.js", |
||||
"name": "aotds-docks", |
||||
"prettier": { |
||||
"svelteSortOrder": "markup-scripts-styles", |
||||
"svelteStrictMode": false |
||||
}, |
||||
"scripts": { |
||||
"build": "NODE_ENV=production webpack", |
||||
"lint": "npm-run-all --parallel \"lint:prettier -- {@}\" \"lint:eslint -- {@}\" --", |
||||
"lint:eslint": "./scripts/eslint", |
||||
"lint:eslint:fix": "npm run lint:eslint -- --fix", |
||||
"lint:fix": "npm-run-all \"lint:eslint:fix -- {@}\" \"lint:prettier:fix -- {@}\" --", |
||||
"lint:prettier": "./scripts/prettier", |
||||
"lint:prettier:fix": "npm run lint:prettier -- --fix", |
||||
"package": "./scripts/merge_package.pl", |
||||
"start": "webpack-dev-server --open --content-base public", |
||||
"test": "tap 'src/**test.js' --no-coverage" |
||||
}, |
||||
"tap": { |
||||
"coverage": false |
||||
}, |
||||
"version": "0.0.1" |
||||
"name": "~TODO~", |
||||
"version": "0.0.1", |
||||
"scripts": { |
||||
"dev": "svelte-kit dev", |
||||
"build": "svelte-kit build", |
||||
"preview": "svelte-kit preview", |
||||
"lint": "prettier --check . && eslint --ignore-path .gitignore .", |
||||
"format": "prettier --write ." |
||||
}, |
||||
"devDependencies": { |
||||
"@sveltejs/kit": "^1.0.0-next.107", |
||||
"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", |
||||
"vite": "^2.2.3" |
||||
}, |
||||
"type": "module", |
||||
"dependencies": { |
||||
"@sveltejs/adapter-node": "^1.0.0-next.18", |
||||
"@sveltejs/adapter-static": "^1.0.0-next.9", |
||||
"@yanick/updeep": "link:/home/yanick/work/javascript/updeep", |
||||
"bulma": "^0.9.2", |
||||
"lodash": "^4.17.21", |
||||
"redux": "^4.1.0", |
||||
"reselect": "^4.0.0", |
||||
"ts-action": "^11.0.0", |
||||
"updux": "link:/home/yanick/work/javascript/updux/" |
||||
} |
||||
} |
||||
|
@ -1,63 +0,0 @@
@@ -1,63 +0,0 @@
|
||||
--- |
||||
_merge: |
||||
- version |
||||
- dependencies |
||||
- devDependencies |
||||
|
||||
name: aotds-docks |
||||
description: Full Thrust ship builder |
||||
|
||||
author: 'Yanick Champoux <yanick@babyl.ca>' |
||||
|
||||
scripts: |
||||
build: NODE_ENV=production webpack |
||||
start: webpack-dev-server --open --content-base public |
||||
|
||||
package: ./scripts/merge_package.pl |
||||
|
||||
test: tap 'src/**test.js' --no-coverage |
||||
|
||||
"lint:prettier": ./scripts/prettier |
||||
"lint:eslint": ./scripts/eslint |
||||
lint: npm-run-all --parallel "lint:prettier -- {@}" "lint:eslint -- {@}" -- |
||||
|
||||
"lint:prettier:fix": npm run lint:prettier -- --fix |
||||
"lint:eslint:fix": npm run lint:eslint -- --fix |
||||
"lint:fix": npm-run-all "lint:eslint:fix -- {@}" "lint:prettier:fix -- {@}" -- |
||||
|
||||
eslintConfig: |
||||
env: |
||||
amd: true |
||||
browser: true |
||||
es6: true |
||||
node: true |
||||
extends: |
||||
- prettier |
||||
- eslint:recommended |
||||
- plugin:you-dont-need-lodash-underscore/compatible |
||||
- plugin:lodash/recommended |
||||
ignorePatterns: |
||||
- src/node_modules |
||||
overrides: |
||||
- files: |
||||
- '*.svelte' |
||||
processor: svelte3/svelte3 |
||||
parserOptions: |
||||
ecmaFeatures: |
||||
modules: true |
||||
ecmaVersion: '2020' |
||||
sourceType: module |
||||
plugins: |
||||
- svelte3 |
||||
rules: |
||||
lodash/prefer-lodash-method: off |
||||
keywords: [ game ] |
||||
license: ISC |
||||
main: index.js |
||||
|
||||
prettier: |
||||
svelteSortOrder: markup-scripts-styles |
||||
svelteStrictMode: false |
||||
|
||||
tap: |
||||
coverage: false |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 1.1 KiB |
@ -1,36 +0,0 @@
@@ -1,36 +0,0 @@
|
||||
<!DOCTYPE html> |
||||
<html lang="en"> |
||||
<head> |
||||
<meta charset='utf-8'> |
||||
<meta name='viewport' content='width=device-width,initial-scale=1'> |
||||
|
||||
<title>The Docks</title> |
||||
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> |
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,600,700"> |
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono"> |
||||
|
||||
<link rel="stylesheet" href="./fonts/faktos.css"> |
||||
<link rel="stylesheet" href="./fonts/dosis/dosis.css"> |
||||
|
||||
<link rel='icon' type='image/png' href='/favicon.png'> |
||||
<link rel='stylesheet' href='./global.css'> |
||||
<link rel='stylesheet' href='./css/buttons.css'> |
||||
<link rel='stylesheet' href='./bundle.css'> |
||||
|
||||
<link rel="stylesheet" href="print.css"> |
||||
|
||||
<!-- |
||||
<link rel='stylesheet' href='/materialize/materialize.css'> |
||||
<script src="/materialize/materialize.js"></script> |
||||
--> |
||||
|
||||
<script> |
||||
process = { env: { NODE_ENV: 'production' } }; |
||||
</script> |
||||
<script defer src='./bundle.js'></script> |
||||
</head> |
||||
|
||||
<body> |
||||
</body> |
||||
</html> |
@ -1,102 +0,0 @@
@@ -1,102 +0,0 @@
|
||||
import svelte from 'rollup-plugin-svelte'; |
||||
import resolve from '@rollup/plugin-node-resolve'; |
||||
import commonjs from '@rollup/plugin-commonjs'; |
||||
import alias from '@rollup/plugin-alias'; |
||||
import livereload from 'rollup-plugin-livereload'; |
||||
import { terser } from 'rollup-plugin-terser'; |
||||
import css from 'rollup-plugin-css-only'; |
||||
import postcss from 'rollup-plugin-postcss'; |
||||
import path from 'path'; |
||||
|
||||
const postcssOptions = () => ({ |
||||
extensions: ['.scss', '.sass'], |
||||
extract: false, |
||||
minimize: true, |
||||
use: [ |
||||
['sass', { |
||||
includePaths: [ |
||||
'./sass', |
||||
'./node_modules', |
||||
// This is only needed because we're using a local module. :-/
|
||||
// Normally, you would not need this line.
|
||||
path.resolve(__dirname, '..', 'node_modules') |
||||
] |
||||
}] |
||||
] |
||||
}); |
||||
|
||||
const production = !process.env.ROLLUP_WATCH; |
||||
|
||||
export default { |
||||
input: 'src/main.js', |
||||
output: { |
||||
sourcemap: true, |
||||
format: 'iife', |
||||
name: 'app', |
||||
file: 'public/build/bundle.js' |
||||
}, |
||||
plugins: [ |
||||
alias({ |
||||
entries: [ |
||||
{ find: '~', replacement: './src' }, |
||||
] |
||||
}), |
||||
// scss(),
|
||||
css({ output: 'public/build/import-bundle.css' }), |
||||
svelte({ |
||||
// enable run-time checks when not in production
|
||||
dev: !production, |
||||
// we'll extract any component CSS out into
|
||||
// a separate file - better for performance
|
||||
css: css => { |
||||
css.write('public/build/bundle.css'); |
||||
} |
||||
}), |
||||
postcss(postcssOptions()), |
||||
// If you have external dependencies installed from
|
||||
// npm, you'll most likely need these plugins. In
|
||||
// some cases you'll need additional configuration -
|
||||
// consult the documentation for details:
|
||||
// https://github.com/rollup/plugins/tree/master/packages/commonjs
|
||||
resolve({ |
||||
browser: true, |
||||
dedupe: ['svelte'] |
||||
}), |
||||
commonjs(), |
||||
|
||||
// In dev mode, call `npm run start` once
|
||||
// the bundle has been generated
|
||||
!production && serve(), |
||||
|
||||
// Watch the `public` directory and refresh the
|
||||
// browser on changes when not in production
|
||||
!production && livereload('public'), |
||||
|
||||
// If we're building for production (npm run build
|
||||
// instead of npm run dev), minify
|
||||
production && terser() |
||||
], |
||||
watch: { |
||||
clearScreen: false, |
||||
chokidar: { |
||||
usePolling: true |
||||
} |
||||
} |
||||
}; |
||||
|
||||
function serve() { |
||||
let started = false; |
||||
|
||||
return { |
||||
writeBundle() { |
||||
if (!started) { |
||||
started = true; |
||||
|
||||
require('child_process').spawn('npm', ['run', 'start', '--', '--dev'], { |
||||
stdio: ['ignore', 'inherit', 'inherit'], |
||||
shell: true |
||||
}); |
||||
} |
||||
} |
||||
}; |
||||
} |
@ -0,0 +1,16 @@
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html> |
||||
<html lang="en"> |
||||
<head> |
||||
<meta charset="utf-8" /> |
||||
<link rel="icon" href="/favicon.ico" /> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1" /> |
||||
<link rel="stylesheet" href="/bulma/bulma.css" /> |
||||
<link rel="stylesheet" href="/fonts/faktos.css"> |
||||
<link rel="stylesheet" href="/fonts/dosis/dosis.css"> |
||||
<link rel='stylesheet' href='/global.css'> |
||||
%svelte.head% |
||||
</head> |
||||
<body> |
||||
<div id="svelte">%svelte.body%</div> |
||||
</body> |
||||
</html> |
@ -0,0 +1,3 @@
@@ -0,0 +1,3 @@
|
||||
/// <reference types="@sveltejs/kit" />
|
||||
/// <reference types="svelte" />
|
||||
/// <reference types="vite/client" />
|
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
<App /> |
||||
|
||||
<script> |
||||
import App from '../components/App.svelte'; |
||||
</script> |
||||
|