stacks 0.37.4 → 0.37.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -2
- package/dist/cli/actions/build.d.ts +7 -0
- package/dist/cli/actions/build.mjs +117 -0
- package/dist/cli/actions/commit.d.ts +1 -0
- package/dist/cli/actions/commit.mjs +8 -0
- package/dist/cli/actions/dev.d.ts +1 -0
- package/dist/cli/actions/dev.mjs +34 -0
- package/dist/cli/actions/examples.d.ts +3 -0
- package/dist/cli/actions/examples.mjs +57 -0
- package/dist/cli/actions/fresh.d.ts +1 -0
- package/dist/cli/actions/fresh.mjs +8 -0
- package/dist/cli/actions/generate.d.ts +7 -0
- package/dist/cli/actions/generate.mjs +117 -0
- package/dist/cli/actions/index.d.ts +12 -0
- package/dist/cli/actions/index.mjs +12 -0
- package/dist/cli/actions/key.d.ts +2 -0
- package/dist/cli/actions/key.mjs +22 -0
- package/dist/cli/actions/lint.d.ts +2 -0
- package/dist/cli/actions/lint.mjs +15 -0
- package/dist/cli/actions/make.d.ts +5 -0
- package/dist/cli/actions/make.mjs +97 -0
- package/dist/cli/actions/release.d.ts +1 -0
- package/dist/cli/actions/release.mjs +8 -0
- package/dist/cli/actions/test.d.ts +3 -0
- package/dist/cli/actions/test.mjs +30 -0
- package/dist/cli/actions/types.d.ts +9 -0
- package/dist/cli/actions/types.mjs +134 -0
- package/dist/cli/actions/update.d.ts +1 -0
- package/dist/cli/actions/update.mjs +59 -0
- package/dist/cli/build.d.ts +3 -0
- package/dist/cli/build.mjs +22 -0
- package/dist/cli/create.d.ts +3 -0
- package/dist/cli/create.mjs +46 -0
- package/dist/cli/dev.d.ts +3 -0
- package/dist/cli/dev.mjs +13 -0
- package/dist/cli/example.d.ts +3 -0
- package/dist/cli/example.mjs +13 -0
- package/dist/cli/generate.d.ts +3 -0
- package/dist/cli/generate.mjs +29 -0
- package/dist/cli/index.d.ts +12 -0
- package/dist/cli/index.mjs +12 -0
- package/dist/cli/key.d.ts +3 -0
- package/dist/cli/key.mjs +7 -0
- package/dist/cli/make.d.ts +3 -0
- package/dist/cli/make.mjs +22 -0
- package/dist/cli/test.d.ts +3 -0
- package/dist/cli/test.mjs +13 -0
- package/dist/cli/types.d.ts +3 -0
- package/dist/cli/types.mjs +9 -0
- package/dist/cli/update.d.ts +3 -0
- package/dist/cli/update.mjs +7 -0
- package/dist/cli/utility.d.ts +3 -0
- package/dist/cli/utility.mjs +22 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.mjs +13970 -0
- package/dist/docs.d.ts +2 -0
- package/dist/docs.mjs +3 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.mjs +20 -0
- package/package.json +33 -38
- package/.gitignore +0 -10
- package/auto-imports.d.ts +0 -826
- package/components.d.ts +0 -22
- package/core/actions/README.md +0 -59
- package/core/actions/node_modules/.bin/markdown-it +0 -17
- package/core/actions/node_modules/.bin/mkdist +0 -17
- package/core/actions/package.json +0 -64
- package/core/actions/src/copy-types.ts +0 -22
- package/core/actions/src/generate/component-meta.ts +0 -94
- package/core/actions/src/generate/index.ts +0 -4
- package/core/actions/src/generate/lib-entries.ts +0 -106
- package/core/actions/src/generate/package-json.ts +0 -87
- package/core/actions/src/generate/vscode-custom-data.ts +0 -28
- package/core/actions/src/generate/vue-compat.ts +0 -17
- package/core/actions/src/generate-component-meta.ts +0 -19
- package/core/actions/src/generate-ide-helpers.ts +0 -23
- package/core/actions/src/generate-lib-entries.ts +0 -22
- package/core/actions/src/generate-package-json.ts +0 -15
- package/core/actions/src/generate-vscode-custom-data.ts +0 -20
- package/core/actions/src/generate-vue-compat.ts +0 -10
- package/core/arrays/README.md +0 -59
- package/core/arrays/node_modules/.bin/mkdist +0 -17
- package/core/arrays/node_modules/.bin/tsc +0 -17
- package/core/arrays/node_modules/.bin/tsserver +0 -17
- package/core/arrays/package.json +0 -50
- package/core/arrays/src/index.ts +0 -3
- package/core/build/README.md +0 -59
- package/core/build/entries/README.md +0 -7
- package/core/build/node_modules/.bin/jiti +0 -17
- package/core/build/node_modules/.bin/mkdist +0 -17
- package/core/build/node_modules/.bin/vite +0 -17
- package/core/build/node_modules/.bin/vite-ssg +0 -17
- package/core/build/node_modules/.bin/vue-docgen-web-types +0 -17
- package/core/build/package.json +0 -71
- package/core/build/src/example-vue.ts +0 -26
- package/core/build/src/example-wc.ts +0 -26
- package/core/build/src/functions.ts +0 -56
- package/core/build/src/index.ts +0 -7
- package/core/build/src/pages.ts +0 -50
- package/core/build/src/stacks.ts +0 -204
- package/core/build/src/vue-components.ts +0 -76
- package/core/build/src/web-components.ts +0 -63
- package/core/build/web-types.config.cjs +0 -4
- package/core/build/web-types.ts +0 -14
- package/core/collections/README.md +0 -59
- package/core/collections/node_modules/.bin/mkdist +0 -17
- package/core/collections/node_modules/.bin/tsc +0 -17
- package/core/collections/node_modules/.bin/tsserver +0 -17
- package/core/collections/package.json +0 -54
- package/core/collections/src/index.ts +0 -1
- package/core/fs/README.md +0 -59
- package/core/fs/node_modules/.bin/mkdist +0 -17
- package/core/fs/package.json +0 -56
- package/core/fs/src/index.ts +0 -170
- package/core/helpers/node_modules/.bin/mkdist +0 -17
- package/core/helpers/package.json +0 -58
- package/core/helpers/src/index.ts +0 -129
- package/core/modules/README.md +0 -61
- package/core/modules/node_modules/.bin/mkdist +0 -17
- package/core/modules/package.json +0 -51
- package/core/modules/src/i18n.ts +0 -23
- package/core/modules/src/nprogress.ts +0 -12
- package/core/modules/src/pwa.ts +0 -12
- package/core/objects/README.md +0 -59
- package/core/objects/node_modules/.bin/mkdist +0 -17
- package/core/objects/node_modules/.bin/tsc +0 -17
- package/core/objects/node_modules/.bin/tsserver +0 -17
- package/core/objects/package.json +0 -51
- package/core/objects/src/index.ts +0 -1
- package/core/paths/node_modules/.bin/mkdist +0 -17
- package/core/paths/node_modules/.bin/tsc +0 -17
- package/core/paths/node_modules/.bin/tsserver +0 -17
- package/core/paths/package.json +0 -51
- package/core/paths/src/index.ts +0 -178
- package/core/router/README.md +0 -59
- package/core/router/node_modules/.bin/mkdist +0 -17
- package/core/router/package.json +0 -51
- package/core/router/src/index.ts +0 -14
- package/core/security/README.md +0 -59
- package/core/security/node_modules/.bin/mkdist +0 -17
- package/core/security/package.json +0 -56
- package/core/security/src/crypt.ts +0 -14
- package/core/security/src/hash.ts +0 -52
- package/core/security/src/index.ts +0 -3
- package/core/security/src/key.ts +0 -11
- package/core/strings/README.md +0 -59
- package/core/strings/node_modules/.bin/mkdist +0 -17
- package/core/strings/node_modules/.bin/tsc +0 -17
- package/core/strings/node_modules/.bin/tsserver +0 -17
- package/core/strings/package.json +0 -63
- package/core/strings/src/index.ts +0 -14
- package/core/types/README.md +0 -59
- package/core/types/node_modules/.bin/markdown-it +0 -17
- package/core/types/node_modules/.bin/mkdist +0 -17
- package/core/types/node_modules/.bin/vite +0 -17
- package/core/types/node_modules/.bin/vitepress +0 -17
- package/core/types/package.json +0 -60
- package/core/types/src/app.ts +0 -131
- package/core/types/src/auto-imports.ts +0 -3
- package/core/types/src/build.ts +0 -3
- package/core/types/src/cli.ts +0 -49
- package/core/types/src/components.ts +0 -66
- package/core/types/src/deploy.ts +0 -11
- package/core/types/src/docs.ts +0 -3
- package/core/types/src/exit-code.ts +0 -10
- package/core/types/src/fs.ts +0 -17
- package/core/types/src/git.ts +0 -131
- package/core/types/src/hashing.ts +0 -107
- package/core/types/src/i18n.ts +0 -19
- package/core/types/src/index.ts +0 -21
- package/core/types/src/inspect.ts +0 -10
- package/core/types/src/layout.ts +0 -8
- package/core/types/src/library.ts +0 -148
- package/core/types/src/manifest.ts +0 -9
- package/core/types/src/markdown.ts +0 -198
- package/core/types/src/pages.ts +0 -8
- package/core/types/src/pwa.ts +0 -8
- package/core/types/src/ssg.ts +0 -3
- package/core/types/src/ui.ts +0 -141
- package/core/ui/README.md +0 -60
- package/core/ui/node_modules/.bin/mkdist +0 -17
- package/core/ui/node_modules/.bin/tsc +0 -17
- package/core/ui/node_modules/.bin/tsserver +0 -17
- package/core/ui/node_modules/.bin/vue-tsc +0 -17
- package/core/ui/package.json +0 -62
- package/core/ui/src/index.ts +0 -60
- package/custom-elements.json +0 -14
- package/examples/vue-components/App.vue +0 -12
- package/examples/vue-components/favicon.png +0 -0
- package/examples/vue-components/index.html +0 -20
- package/examples/web-components/favicon.png +0 -0
- package/examples/web-components/index.html +0 -13
- package/functions/node_modules/.bin/artisan +0 -17
- package/functions/node_modules/.bin/stacks +0 -17
- package/functions/node_modules/.bin/stx +0 -17
- package/functions/package.json +0 -40
- package/netlify.toml +0 -18
- package/nitro.config.ts +0 -6
- package/pages/App.vue +0 -26
- package/pages/index.html +0 -23
- package/pages/main.ts +0 -26
- package/pages/public/_headers +0 -3
- package/pages/public/favicon-dark.svg +0 -3
- package/pages/public/favicon.svg +0 -3
- package/pages/public/pwa-192x192.png +0 -0
- package/pages/public/pwa-512x512.png +0 -0
- package/pages/public/safari-pinned-tab.svg +0 -41
- package/pages/styles/main.css +0 -29
- package/pages/styles/markdown.css +0 -28
- package/scripts/ensure-env.sh +0 -248
- package/shims.d.ts +0 -29
- package/simple-git-hooks.cjs +0 -4
- package/src/cli/actions/build.ts +0 -160
- package/src/cli/actions/commit.ts +0 -9
- package/src/cli/actions/dev.ts +0 -47
- package/src/cli/actions/examples.ts +0 -74
- package/src/cli/actions/fresh.ts +0 -9
- package/src/cli/actions/generate.ts +0 -159
- package/src/cli/actions/index.ts +0 -12
- package/src/cli/actions/key.ts +0 -31
- package/src/cli/actions/lint.ts +0 -19
- package/src/cli/actions/make.ts +0 -116
- package/src/cli/actions/release.ts +0 -9
- package/src/cli/actions/test.ts +0 -39
- package/src/cli/actions/types.ts +0 -180
- package/src/cli/actions/update.ts +0 -90
- package/src/cli/build.ts +0 -49
- package/src/cli/create.ts +0 -71
- package/src/cli/dev.ts +0 -28
- package/src/cli/example.ts +0 -28
- package/src/cli/generate.ts +0 -64
- package/src/cli/index.ts +0 -13
- package/src/cli/key.ts +0 -12
- package/src/cli/make.ts +0 -47
- package/src/cli/test.ts +0 -24
- package/src/cli/types.ts +0 -18
- package/src/cli/update.ts +0 -17
- package/src/cli/utility.ts +0 -39
- package/src/cli.ts +0 -48
- package/src/docs.ts +0 -4
- package/src/index.ts +0 -22
- package/tsconfig.json +0 -96
- package/vitest.config.ts +0 -22
- package/vue-components/dist/.gitkeep +0 -0
- package/vue-components/index.html +0 -13
- package/vue-components/main.ts +0 -18
- package/vue-components/node_modules/.bin/artisan +0 -17
- package/vue-components/node_modules/.bin/stacks +0 -17
- package/vue-components/node_modules/.bin/stx +0 -17
- package/vue-components/package.json +0 -40
- package/web-components/dist/.gitkeep +0 -0
- package/web-components/node_modules/.bin/artisan +0 -17
- package/web-components/node_modules/.bin/stacks +0 -17
- package/web-components/node_modules/.bin/stx +0 -17
- package/web-components/package.json +0 -40
- package/web-types.json +0 -67
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
-
esac
|
|
7
|
-
|
|
8
|
-
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
10
|
-
else
|
|
11
|
-
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
|
-
fi
|
|
13
|
-
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../bin/stacks.mjs" "$@"
|
|
15
|
-
else
|
|
16
|
-
exec node "$basedir/../../../bin/stacks.mjs" "$@"
|
|
17
|
-
fi
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
-
esac
|
|
7
|
-
|
|
8
|
-
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
10
|
-
else
|
|
11
|
-
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
|
-
fi
|
|
13
|
-
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../bin/stacks.mjs" "$@"
|
|
15
|
-
else
|
|
16
|
-
exec node "$basedir/../../../bin/stacks.mjs" "$@"
|
|
17
|
-
fi
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
-
esac
|
|
7
|
-
|
|
8
|
-
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
10
|
-
else
|
|
11
|
-
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
|
-
fi
|
|
13
|
-
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../bin/stacks.mjs" "$@"
|
|
15
|
-
else
|
|
16
|
-
exec node "$basedir/../../../bin/stacks.mjs" "$@"
|
|
17
|
-
fi
|
package/functions/package.json
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "hello-world-fx",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"version": "",
|
|
5
|
-
"packageManager": "pnpm@7.13.6",
|
|
6
|
-
"description": "Your function library description.",
|
|
7
|
-
"author": "Chris Breuer",
|
|
8
|
-
"license": "MIT",
|
|
9
|
-
"homepage": "https://github.com/stacksjs/stacks/tree/main/functions#readme",
|
|
10
|
-
"repository": {
|
|
11
|
-
"type": "git",
|
|
12
|
-
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
13
|
-
"directory": "functions"
|
|
14
|
-
},
|
|
15
|
-
"bugs": {
|
|
16
|
-
"url": "https://github.com/stacksjs/stacks/issues"
|
|
17
|
-
},
|
|
18
|
-
"keywords": ["functions","composables","library","typescript","javascript"],
|
|
19
|
-
"contributors": ["Chris Breuer <chris@ow3.org>"],
|
|
20
|
-
"exports": {
|
|
21
|
-
".": {
|
|
22
|
-
"types": "./dist/index.d.ts",
|
|
23
|
-
"require": "./dist/index.cjs",
|
|
24
|
-
"import": "./dist/index.js"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"main": "dist/index.cjs",
|
|
28
|
-
"module": "dist/index.js",
|
|
29
|
-
"types": "dist/index.d.ts",
|
|
30
|
-
"files": [
|
|
31
|
-
"dist"
|
|
32
|
-
],
|
|
33
|
-
"scripts": {
|
|
34
|
-
"build": "vite build -c ../build/functions.ts",
|
|
35
|
-
"prepublishOnly": "pnpm run build"
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"stacks": "workspace:*"
|
|
39
|
-
}
|
|
40
|
-
}
|
package/netlify.toml
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
[build.environment]
|
|
2
|
-
# bypass npm auto install
|
|
3
|
-
NPM_FLAGS = "--version"
|
|
4
|
-
NODE_VERSION = "16"
|
|
5
|
-
|
|
6
|
-
[build]
|
|
7
|
-
publish = "dist"
|
|
8
|
-
command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run build"
|
|
9
|
-
|
|
10
|
-
[[redirects]]
|
|
11
|
-
from = "/*"
|
|
12
|
-
to = "/pages/index.html"
|
|
13
|
-
status = 200
|
|
14
|
-
|
|
15
|
-
[[headers]]
|
|
16
|
-
for = "/manifest.webmanifest"
|
|
17
|
-
[headers.values]
|
|
18
|
-
Content-Type = "application/manifest+json"
|
package/nitro.config.ts
DELETED
package/pages/App.vue
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
// https://github.com/vueuse/head
|
|
3
|
-
// you can use this to manipulate the document head in any components,
|
|
4
|
-
// they will be rendered correctly in the html results with vite-ssg
|
|
5
|
-
useHead({
|
|
6
|
-
title: 'Stacks',
|
|
7
|
-
meta: [
|
|
8
|
-
{ name: 'description', content: 'The Stacks Framework.' },
|
|
9
|
-
{
|
|
10
|
-
name: 'theme-color',
|
|
11
|
-
content: computed(() => isDark.value ? '#00aba9' : '#ffffff'),
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
link: [
|
|
15
|
-
{
|
|
16
|
-
rel: 'icon',
|
|
17
|
-
type: 'image/svg+xml',
|
|
18
|
-
href: computed(() => preferredDark.value ? '/favicon-dark.svg' : '/favicon.svg'),
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
})
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<template>
|
|
25
|
-
<RouterView />
|
|
26
|
-
</template>
|
package/pages/index.html
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<link rel="apple-touch-icon" href="/pwa-192x192.png">
|
|
7
|
-
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#00aba9">
|
|
8
|
-
<meta name="msapplication-TileColor" content="#00aba9">
|
|
9
|
-
<script>
|
|
10
|
-
(function () {
|
|
11
|
-
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
|
|
12
|
-
const setting = localStorage.getItem('vueuse-color-scheme') || 'auto'
|
|
13
|
-
if (setting === 'dark' || (prefersDark && setting !== 'light'))
|
|
14
|
-
document.documentElement.classList.toggle('dark', true)
|
|
15
|
-
})()
|
|
16
|
-
</script>
|
|
17
|
-
</head>
|
|
18
|
-
<body class="font-sans">
|
|
19
|
-
<div id="app"></div>
|
|
20
|
-
<script type="module" src="src/pages/main.ts"></script>
|
|
21
|
-
</body>
|
|
22
|
-
</html>
|
|
23
|
-
|
package/pages/main.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ViteSSG } from 'vite-ssg'
|
|
2
|
-
import { setupLayouts } from 'virtual:generated-layouts'
|
|
3
|
-
import Previewer from 'virtual:vue-component-preview'
|
|
4
|
-
import type { UserModule } from '@stacksjs/types'
|
|
5
|
-
import { ui } from 'framework/config'
|
|
6
|
-
import App from './App.vue'
|
|
7
|
-
import generatedRoutes from '~pages'
|
|
8
|
-
|
|
9
|
-
import './styles/main.css'
|
|
10
|
-
import 'uno.css'
|
|
11
|
-
|
|
12
|
-
await import(`@unocss/reset/${ui.reset}.js`) // import '@unocss/reset/tailwind.css'
|
|
13
|
-
|
|
14
|
-
const routes = setupLayouts(generatedRoutes)
|
|
15
|
-
|
|
16
|
-
// https://github.com/antfu/vite-ssg
|
|
17
|
-
export const createApp = ViteSSG(
|
|
18
|
-
App,
|
|
19
|
-
{ routes, base: import.meta.env.APP_URL },
|
|
20
|
-
(ctx) => {
|
|
21
|
-
// install all modules under `modules/`
|
|
22
|
-
Object.values(import.meta.glob<{ install: UserModule }>(frameworkPath('modules/*.ts'), { eager: true }))
|
|
23
|
-
.forEach(i => i.install?.(ctx))
|
|
24
|
-
ctx.app.use(Previewer)
|
|
25
|
-
},
|
|
26
|
-
)
|
package/pages/public/_headers
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M27.562 26L17.17 8.928l2.366-3.888L17.828 4L16 7.005L14.17 4l-1.708 1.04l2.366 3.888L4.438 26H2v2h28v-2zM16 10.85L25.22 26H17v-8h-2v8H6.78z" fill="white" />
|
|
3
|
-
</svg>
|
package/pages/public/favicon.svg
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M27.562 26L17.17 8.928l2.366-3.888L17.828 4L16 7.005L14.17 4l-1.708 1.04l2.366 3.888L4.438 26H2v2h28v-2zM16 10.85L25.22 26H17v-8h-2v8H6.78z" fill="#222" />
|
|
3
|
-
</svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" standalone="no"?>
|
|
2
|
-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
|
3
|
-
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
|
4
|
-
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
|
5
|
-
width="700.000000pt" height="700.000000pt" viewBox="0 0 700.000000 700.000000"
|
|
6
|
-
preserveAspectRatio="xMidYMid meet">
|
|
7
|
-
<metadata>
|
|
8
|
-
Created by potrace 1.11, written by Peter Selinger 2001-2013
|
|
9
|
-
</metadata>
|
|
10
|
-
<g transform="translate(0.000000,700.000000) scale(0.100000,-0.100000)"
|
|
11
|
-
fill="#000000" stroke="none">
|
|
12
|
-
<path d="M2916 6015 c-93 -57 -173 -108 -178 -113 -6 -6 7 -36 33 -78 23 -38
|
|
13
|
-
86 -141 139 -229 54 -88 135 -221 180 -295 46 -74 94 -155 108 -180 14 -25 29
|
|
14
|
-
-52 35 -60 7 -12 -9 -45 -62 -130 -39 -63 -85 -140 -103 -170 -18 -30 -117
|
|
15
|
-
-194 -222 -365 -104 -170 -199 -326 -210 -346 -12 -19 -61 -102 -111 -183 -49
|
|
16
|
-
-81 -101 -166 -115 -189 -14 -23 -39 -64 -55 -90 -17 -27 -77 -126 -134 -220
|
|
17
|
-
-57 -95 -127 -210 -156 -257 -194 -315 -325 -533 -325 -541 0 -5 -4 -9 -10 -9
|
|
18
|
-
-5 0 -10 -4 -10 -9 0 -5 -55 -98 -121 -207 -247 -404 -403 -660 -416 -684 -8
|
|
19
|
-
-14 -58 -97 -112 -185 l-98 -160 -189 -2 c-104 -1 -225 -2 -269 -2 l-80 -1 1
|
|
20
|
-
-210 c0 -116 4 -213 8 -218 11 -11 6107 -9 6114 2 8 13 8 406 0 419 -4 7 -88
|
|
21
|
-
10 -265 9 l-259 -2 -50 77 c-27 43 -54 87 -60 98 -6 11 -62 103 -124 205 -62
|
|
22
|
-
102 -120 197 -129 212 -9 16 -85 142 -170 280 -85 139 -160 262 -165 273 -6
|
|
23
|
-
11 -13 22 -16 25 -3 3 -30 46 -59 95 -30 50 -102 169 -161 265 -59 96 -240
|
|
24
|
-
393 -402 660 -163 267 -371 609 -463 760 -92 151 -194 318 -225 370 -31 52
|
|
25
|
-
-101 167 -155 255 l-97 160 27 50 c16 27 32 55 36 61 5 5 38 59 74 120 36 60
|
|
26
|
-
69 116 74 124 5 8 75 122 155 253 81 131 144 242 141 247 -4 7 -114 76 -183
|
|
27
|
-
115 -10 6 -52 32 -95 58 -42 27 -81 46 -87 42 -8 -5 -94 -140 -140 -219 -19
|
|
28
|
-
-33 -221 -365 -246 -404 -15 -22 -18 -18 -111 135 -52 87 -123 203 -157 258
|
|
29
|
-
-67 108 -67 110 -111 184 -16 28 -34 51 -40 50 -5 0 -86 -47 -179 -104z m739
|
|
30
|
-
-1642 c319 -526 519 -854 637 -1046 43 -70 78 -130 78 -133 0 -2 5 -10 10 -17
|
|
31
|
-
6 -7 69 -109 140 -227 72 -118 134 -222 139 -230 5 -8 55 -89 111 -180 56 -91
|
|
32
|
-
105 -172 110 -180 9 -14 52 -84 270 -445 54 -88 135 -221 180 -295 46 -74 91
|
|
33
|
-
-148 100 -165 9 -16 31 -53 48 -81 18 -28 32 -54 32 -57 0 -3 -403 -6 -895 -5
|
|
34
|
-
l-895 0 0 81 c-1 45 -1 439 -1 875 l0 792 -37 1 c-57 1 -344 1 -374 0 l-27 -1
|
|
35
|
-
0 -832 c0 -458 0 -852 0 -875 l-1 -42 -895 1 c-492 0 -895 3 -895 5 0 9 115
|
|
36
|
-
198 122 201 5 2 8 7 8 12 0 5 23 46 51 92 28 46 78 128 112 183 33 55 70 116
|
|
37
|
-
82 135 12 19 132 215 265 435 133 220 266 438 295 485 65 105 206 338 220 362
|
|
38
|
-
6 10 172 284 370 608 198 325 387 635 420 690 33 55 62 100 65 100 3 0 73
|
|
39
|
-
-111 155 -247z"/>
|
|
40
|
-
</g>
|
|
41
|
-
</svg>
|
package/pages/styles/main.css
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
@import './markdown.css';
|
|
2
|
-
|
|
3
|
-
html,
|
|
4
|
-
body,
|
|
5
|
-
#app {
|
|
6
|
-
height: 100%;
|
|
7
|
-
margin: 0;
|
|
8
|
-
padding: 0;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
html.dark {
|
|
12
|
-
background: #121212;
|
|
13
|
-
color-scheme: dark;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
#nprogress {
|
|
17
|
-
pointer-events: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
#nprogress .bar {
|
|
21
|
-
background: rgb(13,148,136);
|
|
22
|
-
opacity: 0.75;
|
|
23
|
-
position: fixed;
|
|
24
|
-
z-index: 1031;
|
|
25
|
-
top: 0;
|
|
26
|
-
left: 0;
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: 2px;
|
|
29
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
.prose pre:not(.shiki) {
|
|
2
|
-
padding: 0;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.prose .shiki {
|
|
6
|
-
font-family: 'DM Mono', monospace;
|
|
7
|
-
font-size: 1.2em;
|
|
8
|
-
line-height: 1.4;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.prose img {
|
|
12
|
-
width: 100%;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.shiki-light {
|
|
16
|
-
background: #f8f8f8 !important;
|
|
17
|
-
}
|
|
18
|
-
.shiki-dark {
|
|
19
|
-
background: #0e0e0e !important;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
html.dark .shiki-light {
|
|
23
|
-
display: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
html:not(.dark) .shiki-dark {
|
|
27
|
-
display: none;
|
|
28
|
-
}
|
package/scripts/ensure-env.sh
DELETED
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# many thanks to: https://raw.githubusercontent.com/Schniz/fnm/master/.ci/install.sh
|
|
3
|
-
|
|
4
|
-
set -e
|
|
5
|
-
|
|
6
|
-
# check if node is installed
|
|
7
|
-
if which node > /dev/null
|
|
8
|
-
then
|
|
9
|
-
# check if Node version is over 16.17 or else install it & enable corepack,
|
|
10
|
-
# if it is not >= 16.17, we will need to update by auto-detecting whether
|
|
11
|
-
# a node manager used
|
|
12
|
-
wip
|
|
13
|
-
else
|
|
14
|
-
if which fnm > /dev/null
|
|
15
|
-
then
|
|
16
|
-
# use fnm to install a specified Node version
|
|
17
|
-
echo 'testing here'
|
|
18
|
-
echo ${pwd}
|
|
19
|
-
fnm use
|
|
20
|
-
elif which nvm > /dev/null
|
|
21
|
-
# use nvm to install correct node version
|
|
22
|
-
cp .node-version .nvmrc
|
|
23
|
-
nvm use
|
|
24
|
-
fi
|
|
25
|
-
fi
|
|
26
|
-
else
|
|
27
|
-
# install node (abstract above into a function)
|
|
28
|
-
|
|
29
|
-
# check if fnm is installed, if it is, assume it's used
|
|
30
|
-
then
|
|
31
|
-
nvm use
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
# check if nvm is installed
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
INSTALL_DIR="$HOME/.fnm"
|
|
39
|
-
RELEASE="latest"
|
|
40
|
-
OS="$(uname -s)"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
# Parse Flags
|
|
45
|
-
parse_args() {
|
|
46
|
-
while [[ $# -gt 0 ]]; do
|
|
47
|
-
key="$1"
|
|
48
|
-
|
|
49
|
-
case $key in
|
|
50
|
-
-d | --install-dir)
|
|
51
|
-
INSTALL_DIR="$2"
|
|
52
|
-
shift # past argument
|
|
53
|
-
shift # past value
|
|
54
|
-
;;
|
|
55
|
-
-s | --skip-shell)
|
|
56
|
-
SKIP_SHELL="true"
|
|
57
|
-
shift # past argument
|
|
58
|
-
;;
|
|
59
|
-
--force-install | --force-no-brew)
|
|
60
|
-
echo "\`--force-install\`: I hope you know what you're doing." >&2
|
|
61
|
-
FORCE_INSTALL="true"
|
|
62
|
-
shift
|
|
63
|
-
;;
|
|
64
|
-
-r | --release)
|
|
65
|
-
RELEASE="$2"
|
|
66
|
-
shift # past release argument
|
|
67
|
-
shift # past release value
|
|
68
|
-
;;
|
|
69
|
-
*)
|
|
70
|
-
echo "Unrecognized argument $key"
|
|
71
|
-
exit 1
|
|
72
|
-
;;
|
|
73
|
-
esac
|
|
74
|
-
done
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
set_filename() {
|
|
78
|
-
if [ "$OS" = "Linux" ]; then
|
|
79
|
-
# Based on https://stackoverflow.com/a/45125525
|
|
80
|
-
case "$(uname -m)" in
|
|
81
|
-
arm | armv7*)
|
|
82
|
-
FILENAME="fnm-arm32"
|
|
83
|
-
;;
|
|
84
|
-
aarch* | armv8*)
|
|
85
|
-
FILENAME="fnm-arm64"
|
|
86
|
-
;;
|
|
87
|
-
*)
|
|
88
|
-
FILENAME="fnm-linux"
|
|
89
|
-
esac
|
|
90
|
-
elif [ "$OS" = "Darwin" ] && [ "$FORCE_INSTALL" = "true" ]; then
|
|
91
|
-
FILENAME="fnm-macos"
|
|
92
|
-
USE_HOMEBREW="false"
|
|
93
|
-
echo "Downloading the latest fnm binary from GitHub..."
|
|
94
|
-
echo " Pro tip: it's easier to use Homebrew for managing fnm in macOS."
|
|
95
|
-
echo " Remove the \`--force-no-brew\` so it will be easy to upgrade."
|
|
96
|
-
elif [ "$OS" = "Darwin" ]; then
|
|
97
|
-
USE_HOMEBREW="true"
|
|
98
|
-
echo "Downloading fnm using Homebrew..."
|
|
99
|
-
else
|
|
100
|
-
echo "OS $OS is not supported."
|
|
101
|
-
echo "If you think that's a bug - please file an issue to https://github.com/Schniz/fnm/issues"
|
|
102
|
-
exit 1
|
|
103
|
-
fi
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
download_fnm() {
|
|
107
|
-
if [ "$USE_HOMEBREW" = "true" ]; then
|
|
108
|
-
brew install fnm
|
|
109
|
-
else
|
|
110
|
-
if [ "$RELEASE" = "latest" ]; then
|
|
111
|
-
URL="https://github.com/Schniz/fnm/releases/latest/download/$FILENAME.zip"
|
|
112
|
-
else
|
|
113
|
-
URL="https://github.com/Schniz/fnm/releases/download/$RELEASE/$FILENAME.zip"
|
|
114
|
-
fi
|
|
115
|
-
|
|
116
|
-
DOWNLOAD_DIR=$(mktemp -d)
|
|
117
|
-
|
|
118
|
-
echo "Downloading $URL..."
|
|
119
|
-
|
|
120
|
-
mkdir -p "$INSTALL_DIR" &>/dev/null
|
|
121
|
-
|
|
122
|
-
if ! curl --progress-bar --fail -L "$URL" -o "$DOWNLOAD_DIR/$FILENAME.zip"; then
|
|
123
|
-
echo "Download failed. Check that the release/filename are correct."
|
|
124
|
-
exit 1
|
|
125
|
-
fi
|
|
126
|
-
|
|
127
|
-
unzip -q "$DOWNLOAD_DIR/$FILENAME.zip" -d "$DOWNLOAD_DIR"
|
|
128
|
-
|
|
129
|
-
if [ -f "$DOWNLOAD_DIR/fnm" ]; then
|
|
130
|
-
mv "$DOWNLOAD_DIR/fnm" "$INSTALL_DIR/fnm"
|
|
131
|
-
else
|
|
132
|
-
mv "$DOWNLOAD_DIR/$FILENAME/fnm" "$INSTALL_DIR/fnm"
|
|
133
|
-
fi
|
|
134
|
-
|
|
135
|
-
chmod u+x "$INSTALL_DIR/fnm"
|
|
136
|
-
fi
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
check_dependencies() {
|
|
140
|
-
echo "Checking dependencies for the installation script..."
|
|
141
|
-
|
|
142
|
-
echo -n "Checking availability of curl... "
|
|
143
|
-
if hash curl 2>/dev/null; then
|
|
144
|
-
echo "OK!"
|
|
145
|
-
else
|
|
146
|
-
echo "Missing!"
|
|
147
|
-
SHOULD_EXIT="true"
|
|
148
|
-
fi
|
|
149
|
-
|
|
150
|
-
echo -n "Checking availability of unzip... "
|
|
151
|
-
if hash unzip 2>/dev/null; then
|
|
152
|
-
echo "OK!"
|
|
153
|
-
else
|
|
154
|
-
echo "Missing!"
|
|
155
|
-
SHOULD_EXIT="true"
|
|
156
|
-
fi
|
|
157
|
-
|
|
158
|
-
if [ "$USE_HOMEBREW" = "true" ]; then
|
|
159
|
-
echo -n "Checking availability of Homebrew (brew)... "
|
|
160
|
-
if hash brew 2>/dev/null; then
|
|
161
|
-
echo "OK!"
|
|
162
|
-
else
|
|
163
|
-
echo "Missing!"
|
|
164
|
-
SHOULD_EXIT="true"
|
|
165
|
-
fi
|
|
166
|
-
fi
|
|
167
|
-
|
|
168
|
-
if [ "$SHOULD_EXIT" = "true" ]; then
|
|
169
|
-
echo "Not installing fnm due to missing dependencies."
|
|
170
|
-
exit 1
|
|
171
|
-
fi
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
ensure_containing_dir_exists() {
|
|
175
|
-
local CONTAINING_DIR
|
|
176
|
-
CONTAINING_DIR="$(dirname "$1")"
|
|
177
|
-
if [ ! -d "$CONTAINING_DIR" ]; then
|
|
178
|
-
echo " >> Creating directory $CONTAINING_DIR"
|
|
179
|
-
mkdir -p "$CONTAINING_DIR"
|
|
180
|
-
fi
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
setup_shell() {
|
|
184
|
-
CURRENT_SHELL="$(basename "$SHELL")"
|
|
185
|
-
|
|
186
|
-
if [ "$CURRENT_SHELL" = "zsh" ]; then
|
|
187
|
-
CONF_FILE=${ZDOTDIR:-$HOME}/.zshrc
|
|
188
|
-
ensure_containing_dir_exists "$CONF_FILE"
|
|
189
|
-
echo "Installing for Zsh. Appending the following to $CONF_FILE:"
|
|
190
|
-
echo ""
|
|
191
|
-
echo ' # fnm'
|
|
192
|
-
echo ' export PATH='"$INSTALL_DIR"':$PATH'
|
|
193
|
-
echo ' eval "`fnm env`"'
|
|
194
|
-
|
|
195
|
-
echo '' >>$CONF_FILE
|
|
196
|
-
echo '# fnm' >>$CONF_FILE
|
|
197
|
-
echo 'export PATH='$INSTALL_DIR':$PATH' >>$CONF_FILE
|
|
198
|
-
echo 'eval "`fnm env`"' >>$CONF_FILE
|
|
199
|
-
|
|
200
|
-
elif [ "$CURRENT_SHELL" = "fish" ]; then
|
|
201
|
-
CONF_FILE=$HOME/.config/fish/conf.d/fnm.fish
|
|
202
|
-
ensure_containing_dir_exists "$CONF_FILE"
|
|
203
|
-
echo "Installing for Fish. Appending the following to $CONF_FILE:"
|
|
204
|
-
echo ""
|
|
205
|
-
echo ' # fnm'
|
|
206
|
-
echo ' set PATH '"$INSTALL_DIR"' $PATH'
|
|
207
|
-
echo ' fnm env | source'
|
|
208
|
-
|
|
209
|
-
echo '# fnm' >>$CONF_FILE
|
|
210
|
-
echo 'set PATH '"$INSTALL_DIR"' $PATH' >>$CONF_FILE
|
|
211
|
-
echo 'fnm env | source' >>$CONF_FILE
|
|
212
|
-
|
|
213
|
-
elif [ "$CURRENT_SHELL" = "bash" ]; then
|
|
214
|
-
if [ "$OS" = "Darwin" ]; then
|
|
215
|
-
CONF_FILE=$HOME/.profile
|
|
216
|
-
else
|
|
217
|
-
CONF_FILE=$HOME/.bashrc
|
|
218
|
-
fi
|
|
219
|
-
ensure_containing_dir_exists "$CONF_FILE"
|
|
220
|
-
echo "Installing for Bash. Appending the following to $CONF_FILE:"
|
|
221
|
-
echo ""
|
|
222
|
-
echo ' # fnm'
|
|
223
|
-
echo ' export PATH='"$INSTALL_DIR"':$PATH'
|
|
224
|
-
echo ' eval "`fnm env`"'
|
|
225
|
-
|
|
226
|
-
echo '' >>$CONF_FILE
|
|
227
|
-
echo '# fnm' >>$CONF_FILE
|
|
228
|
-
echo 'export PATH='"$INSTALL_DIR"':$PATH' >>$CONF_FILE
|
|
229
|
-
echo 'eval "`fnm env`"' >>$CONF_FILE
|
|
230
|
-
|
|
231
|
-
else
|
|
232
|
-
echo "Could not infer shell type. Please set up manually."
|
|
233
|
-
exit 1
|
|
234
|
-
fi
|
|
235
|
-
|
|
236
|
-
echo ""
|
|
237
|
-
echo "In order to apply the changes, open a new terminal or run the following command:"
|
|
238
|
-
echo ""
|
|
239
|
-
echo " source $CONF_FILE"
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
parse_args "$@"
|
|
243
|
-
set_filename
|
|
244
|
-
check_dependencies
|
|
245
|
-
download_fnm
|
|
246
|
-
if [ "$SKIP_SHELL" != "true" ]; then
|
|
247
|
-
setup_shell
|
|
248
|
-
fi
|
package/shims.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
interface ImportMetaEnv {
|
|
2
|
-
readonly APP_NAME: string
|
|
3
|
-
readonly APP_ENV: string
|
|
4
|
-
readonly APP_KEY: string
|
|
5
|
-
readonly APP_URL: string
|
|
6
|
-
readonly APP_DEBUG: boolean
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
interface ImportMeta {
|
|
10
|
-
readonly env: ImportMetaEnv
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare interface Window {
|
|
14
|
-
// extend the window
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// via `vite-plugin-vue-markdown`, markdown
|
|
18
|
-
// files can be treated as Vue components
|
|
19
|
-
declare module '*.md' {
|
|
20
|
-
import { type DefineComponent } from 'vue'
|
|
21
|
-
const component: DefineComponent<{}, {}, any>
|
|
22
|
-
export default component
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
declare module '*.vue' {
|
|
26
|
-
import { type DefineComponent } from 'vue'
|
|
27
|
-
const component: DefineComponent<{}, {}, any>
|
|
28
|
-
export default component
|
|
29
|
-
}
|
package/simple-git-hooks.cjs
DELETED