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.
Files changed (256) hide show
  1. package/README.md +7 -2
  2. package/dist/cli/actions/build.d.ts +7 -0
  3. package/dist/cli/actions/build.mjs +117 -0
  4. package/dist/cli/actions/commit.d.ts +1 -0
  5. package/dist/cli/actions/commit.mjs +8 -0
  6. package/dist/cli/actions/dev.d.ts +1 -0
  7. package/dist/cli/actions/dev.mjs +34 -0
  8. package/dist/cli/actions/examples.d.ts +3 -0
  9. package/dist/cli/actions/examples.mjs +57 -0
  10. package/dist/cli/actions/fresh.d.ts +1 -0
  11. package/dist/cli/actions/fresh.mjs +8 -0
  12. package/dist/cli/actions/generate.d.ts +7 -0
  13. package/dist/cli/actions/generate.mjs +117 -0
  14. package/dist/cli/actions/index.d.ts +12 -0
  15. package/dist/cli/actions/index.mjs +12 -0
  16. package/dist/cli/actions/key.d.ts +2 -0
  17. package/dist/cli/actions/key.mjs +22 -0
  18. package/dist/cli/actions/lint.d.ts +2 -0
  19. package/dist/cli/actions/lint.mjs +15 -0
  20. package/dist/cli/actions/make.d.ts +5 -0
  21. package/dist/cli/actions/make.mjs +97 -0
  22. package/dist/cli/actions/release.d.ts +1 -0
  23. package/dist/cli/actions/release.mjs +8 -0
  24. package/dist/cli/actions/test.d.ts +3 -0
  25. package/dist/cli/actions/test.mjs +30 -0
  26. package/dist/cli/actions/types.d.ts +9 -0
  27. package/dist/cli/actions/types.mjs +134 -0
  28. package/dist/cli/actions/update.d.ts +1 -0
  29. package/dist/cli/actions/update.mjs +59 -0
  30. package/dist/cli/build.d.ts +3 -0
  31. package/dist/cli/build.mjs +22 -0
  32. package/dist/cli/create.d.ts +3 -0
  33. package/dist/cli/create.mjs +46 -0
  34. package/dist/cli/dev.d.ts +3 -0
  35. package/dist/cli/dev.mjs +13 -0
  36. package/dist/cli/example.d.ts +3 -0
  37. package/dist/cli/example.mjs +13 -0
  38. package/dist/cli/generate.d.ts +3 -0
  39. package/dist/cli/generate.mjs +29 -0
  40. package/dist/cli/index.d.ts +12 -0
  41. package/dist/cli/index.mjs +12 -0
  42. package/dist/cli/key.d.ts +3 -0
  43. package/dist/cli/key.mjs +7 -0
  44. package/dist/cli/make.d.ts +3 -0
  45. package/dist/cli/make.mjs +22 -0
  46. package/dist/cli/test.d.ts +3 -0
  47. package/dist/cli/test.mjs +13 -0
  48. package/dist/cli/types.d.ts +3 -0
  49. package/dist/cli/types.mjs +9 -0
  50. package/dist/cli/update.d.ts +3 -0
  51. package/dist/cli/update.mjs +7 -0
  52. package/dist/cli/utility.d.ts +3 -0
  53. package/dist/cli/utility.mjs +22 -0
  54. package/dist/cli.d.ts +2 -0
  55. package/dist/cli.mjs +13970 -0
  56. package/dist/docs.d.ts +2 -0
  57. package/dist/docs.mjs +3 -0
  58. package/dist/index.d.ts +20 -0
  59. package/dist/index.mjs +20 -0
  60. package/package.json +33 -38
  61. package/.gitignore +0 -10
  62. package/auto-imports.d.ts +0 -826
  63. package/components.d.ts +0 -22
  64. package/core/actions/README.md +0 -59
  65. package/core/actions/node_modules/.bin/markdown-it +0 -17
  66. package/core/actions/node_modules/.bin/mkdist +0 -17
  67. package/core/actions/package.json +0 -64
  68. package/core/actions/src/copy-types.ts +0 -22
  69. package/core/actions/src/generate/component-meta.ts +0 -94
  70. package/core/actions/src/generate/index.ts +0 -4
  71. package/core/actions/src/generate/lib-entries.ts +0 -106
  72. package/core/actions/src/generate/package-json.ts +0 -87
  73. package/core/actions/src/generate/vscode-custom-data.ts +0 -28
  74. package/core/actions/src/generate/vue-compat.ts +0 -17
  75. package/core/actions/src/generate-component-meta.ts +0 -19
  76. package/core/actions/src/generate-ide-helpers.ts +0 -23
  77. package/core/actions/src/generate-lib-entries.ts +0 -22
  78. package/core/actions/src/generate-package-json.ts +0 -15
  79. package/core/actions/src/generate-vscode-custom-data.ts +0 -20
  80. package/core/actions/src/generate-vue-compat.ts +0 -10
  81. package/core/arrays/README.md +0 -59
  82. package/core/arrays/node_modules/.bin/mkdist +0 -17
  83. package/core/arrays/node_modules/.bin/tsc +0 -17
  84. package/core/arrays/node_modules/.bin/tsserver +0 -17
  85. package/core/arrays/package.json +0 -50
  86. package/core/arrays/src/index.ts +0 -3
  87. package/core/build/README.md +0 -59
  88. package/core/build/entries/README.md +0 -7
  89. package/core/build/node_modules/.bin/jiti +0 -17
  90. package/core/build/node_modules/.bin/mkdist +0 -17
  91. package/core/build/node_modules/.bin/vite +0 -17
  92. package/core/build/node_modules/.bin/vite-ssg +0 -17
  93. package/core/build/node_modules/.bin/vue-docgen-web-types +0 -17
  94. package/core/build/package.json +0 -71
  95. package/core/build/src/example-vue.ts +0 -26
  96. package/core/build/src/example-wc.ts +0 -26
  97. package/core/build/src/functions.ts +0 -56
  98. package/core/build/src/index.ts +0 -7
  99. package/core/build/src/pages.ts +0 -50
  100. package/core/build/src/stacks.ts +0 -204
  101. package/core/build/src/vue-components.ts +0 -76
  102. package/core/build/src/web-components.ts +0 -63
  103. package/core/build/web-types.config.cjs +0 -4
  104. package/core/build/web-types.ts +0 -14
  105. package/core/collections/README.md +0 -59
  106. package/core/collections/node_modules/.bin/mkdist +0 -17
  107. package/core/collections/node_modules/.bin/tsc +0 -17
  108. package/core/collections/node_modules/.bin/tsserver +0 -17
  109. package/core/collections/package.json +0 -54
  110. package/core/collections/src/index.ts +0 -1
  111. package/core/fs/README.md +0 -59
  112. package/core/fs/node_modules/.bin/mkdist +0 -17
  113. package/core/fs/package.json +0 -56
  114. package/core/fs/src/index.ts +0 -170
  115. package/core/helpers/node_modules/.bin/mkdist +0 -17
  116. package/core/helpers/package.json +0 -58
  117. package/core/helpers/src/index.ts +0 -129
  118. package/core/modules/README.md +0 -61
  119. package/core/modules/node_modules/.bin/mkdist +0 -17
  120. package/core/modules/package.json +0 -51
  121. package/core/modules/src/i18n.ts +0 -23
  122. package/core/modules/src/nprogress.ts +0 -12
  123. package/core/modules/src/pwa.ts +0 -12
  124. package/core/objects/README.md +0 -59
  125. package/core/objects/node_modules/.bin/mkdist +0 -17
  126. package/core/objects/node_modules/.bin/tsc +0 -17
  127. package/core/objects/node_modules/.bin/tsserver +0 -17
  128. package/core/objects/package.json +0 -51
  129. package/core/objects/src/index.ts +0 -1
  130. package/core/paths/node_modules/.bin/mkdist +0 -17
  131. package/core/paths/node_modules/.bin/tsc +0 -17
  132. package/core/paths/node_modules/.bin/tsserver +0 -17
  133. package/core/paths/package.json +0 -51
  134. package/core/paths/src/index.ts +0 -178
  135. package/core/router/README.md +0 -59
  136. package/core/router/node_modules/.bin/mkdist +0 -17
  137. package/core/router/package.json +0 -51
  138. package/core/router/src/index.ts +0 -14
  139. package/core/security/README.md +0 -59
  140. package/core/security/node_modules/.bin/mkdist +0 -17
  141. package/core/security/package.json +0 -56
  142. package/core/security/src/crypt.ts +0 -14
  143. package/core/security/src/hash.ts +0 -52
  144. package/core/security/src/index.ts +0 -3
  145. package/core/security/src/key.ts +0 -11
  146. package/core/strings/README.md +0 -59
  147. package/core/strings/node_modules/.bin/mkdist +0 -17
  148. package/core/strings/node_modules/.bin/tsc +0 -17
  149. package/core/strings/node_modules/.bin/tsserver +0 -17
  150. package/core/strings/package.json +0 -63
  151. package/core/strings/src/index.ts +0 -14
  152. package/core/types/README.md +0 -59
  153. package/core/types/node_modules/.bin/markdown-it +0 -17
  154. package/core/types/node_modules/.bin/mkdist +0 -17
  155. package/core/types/node_modules/.bin/vite +0 -17
  156. package/core/types/node_modules/.bin/vitepress +0 -17
  157. package/core/types/package.json +0 -60
  158. package/core/types/src/app.ts +0 -131
  159. package/core/types/src/auto-imports.ts +0 -3
  160. package/core/types/src/build.ts +0 -3
  161. package/core/types/src/cli.ts +0 -49
  162. package/core/types/src/components.ts +0 -66
  163. package/core/types/src/deploy.ts +0 -11
  164. package/core/types/src/docs.ts +0 -3
  165. package/core/types/src/exit-code.ts +0 -10
  166. package/core/types/src/fs.ts +0 -17
  167. package/core/types/src/git.ts +0 -131
  168. package/core/types/src/hashing.ts +0 -107
  169. package/core/types/src/i18n.ts +0 -19
  170. package/core/types/src/index.ts +0 -21
  171. package/core/types/src/inspect.ts +0 -10
  172. package/core/types/src/layout.ts +0 -8
  173. package/core/types/src/library.ts +0 -148
  174. package/core/types/src/manifest.ts +0 -9
  175. package/core/types/src/markdown.ts +0 -198
  176. package/core/types/src/pages.ts +0 -8
  177. package/core/types/src/pwa.ts +0 -8
  178. package/core/types/src/ssg.ts +0 -3
  179. package/core/types/src/ui.ts +0 -141
  180. package/core/ui/README.md +0 -60
  181. package/core/ui/node_modules/.bin/mkdist +0 -17
  182. package/core/ui/node_modules/.bin/tsc +0 -17
  183. package/core/ui/node_modules/.bin/tsserver +0 -17
  184. package/core/ui/node_modules/.bin/vue-tsc +0 -17
  185. package/core/ui/package.json +0 -62
  186. package/core/ui/src/index.ts +0 -60
  187. package/custom-elements.json +0 -14
  188. package/examples/vue-components/App.vue +0 -12
  189. package/examples/vue-components/favicon.png +0 -0
  190. package/examples/vue-components/index.html +0 -20
  191. package/examples/web-components/favicon.png +0 -0
  192. package/examples/web-components/index.html +0 -13
  193. package/functions/node_modules/.bin/artisan +0 -17
  194. package/functions/node_modules/.bin/stacks +0 -17
  195. package/functions/node_modules/.bin/stx +0 -17
  196. package/functions/package.json +0 -40
  197. package/netlify.toml +0 -18
  198. package/nitro.config.ts +0 -6
  199. package/pages/App.vue +0 -26
  200. package/pages/index.html +0 -23
  201. package/pages/main.ts +0 -26
  202. package/pages/public/_headers +0 -3
  203. package/pages/public/favicon-dark.svg +0 -3
  204. package/pages/public/favicon.svg +0 -3
  205. package/pages/public/pwa-192x192.png +0 -0
  206. package/pages/public/pwa-512x512.png +0 -0
  207. package/pages/public/safari-pinned-tab.svg +0 -41
  208. package/pages/styles/main.css +0 -29
  209. package/pages/styles/markdown.css +0 -28
  210. package/scripts/ensure-env.sh +0 -248
  211. package/shims.d.ts +0 -29
  212. package/simple-git-hooks.cjs +0 -4
  213. package/src/cli/actions/build.ts +0 -160
  214. package/src/cli/actions/commit.ts +0 -9
  215. package/src/cli/actions/dev.ts +0 -47
  216. package/src/cli/actions/examples.ts +0 -74
  217. package/src/cli/actions/fresh.ts +0 -9
  218. package/src/cli/actions/generate.ts +0 -159
  219. package/src/cli/actions/index.ts +0 -12
  220. package/src/cli/actions/key.ts +0 -31
  221. package/src/cli/actions/lint.ts +0 -19
  222. package/src/cli/actions/make.ts +0 -116
  223. package/src/cli/actions/release.ts +0 -9
  224. package/src/cli/actions/test.ts +0 -39
  225. package/src/cli/actions/types.ts +0 -180
  226. package/src/cli/actions/update.ts +0 -90
  227. package/src/cli/build.ts +0 -49
  228. package/src/cli/create.ts +0 -71
  229. package/src/cli/dev.ts +0 -28
  230. package/src/cli/example.ts +0 -28
  231. package/src/cli/generate.ts +0 -64
  232. package/src/cli/index.ts +0 -13
  233. package/src/cli/key.ts +0 -12
  234. package/src/cli/make.ts +0 -47
  235. package/src/cli/test.ts +0 -24
  236. package/src/cli/types.ts +0 -18
  237. package/src/cli/update.ts +0 -17
  238. package/src/cli/utility.ts +0 -39
  239. package/src/cli.ts +0 -48
  240. package/src/docs.ts +0 -4
  241. package/src/index.ts +0 -22
  242. package/tsconfig.json +0 -96
  243. package/vitest.config.ts +0 -22
  244. package/vue-components/dist/.gitkeep +0 -0
  245. package/vue-components/index.html +0 -13
  246. package/vue-components/main.ts +0 -18
  247. package/vue-components/node_modules/.bin/artisan +0 -17
  248. package/vue-components/node_modules/.bin/stacks +0 -17
  249. package/vue-components/node_modules/.bin/stx +0 -17
  250. package/vue-components/package.json +0 -40
  251. package/web-components/dist/.gitkeep +0 -0
  252. package/web-components/node_modules/.bin/artisan +0 -17
  253. package/web-components/node_modules/.bin/stacks +0 -17
  254. package/web-components/node_modules/.bin/stx +0 -17
  255. package/web-components/package.json +0 -40
  256. 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
@@ -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
@@ -1,6 +0,0 @@
1
- import { defineNitroConfig } from 'nitropack'
2
- import { projectPath } from './src'
3
-
4
- export default defineNitroConfig({
5
- srcDir: projectPath(),
6
- })
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
- )
@@ -1,3 +0,0 @@
1
- /assets/*
2
- cache-control: max-age=31536000
3
- cache-control: immutable
@@ -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>
@@ -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>
@@ -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
- }
@@ -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
- }
@@ -1,4 +0,0 @@
1
- const jiti = require('jiti')(__filename)
2
- const config = jiti('../config/git.ts')
3
-
4
- module.exports = config.hooks