@poveste/app 0.1.1 → 0.1.3
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/dist/app/assets/poveste-text-dark.svg +15 -0
- package/dist/app/assets/poveste-text.svg +15 -0
- package/dist/app/assets/poveste.svg +14 -0
- package/dist/app/style/floating.pcss +34 -0
- package/dist/app/style/main.pcss +100 -0
- package/dist/app/style/sandbox.css +24 -0
- package/dist/app/style/transitions.pcss +51 -0
- package/dist/bundle-index.js +1 -0
- package/dist/bundle-main-dev.js +4 -0
- package/dist/bundle-main.js +5 -0
- package/dist/bundle-sandbox-dev.js +2 -0
- package/dist/bundle-sandbox.js +2 -0
- package/dist/bundled/App.vue.js +5 -0
- package/dist/bundled/App.vue2.js +167 -0
- package/dist/bundled/_virtual/_plugin-vue_export-helper.js +10 -0
- package/dist/bundled/api.js +12 -0
- package/dist/bundled/app.css +116 -0
- package/dist/bundled/assets/poveste-text-dark.svg.js +4 -0
- package/dist/bundled/assets/poveste-text.svg.js +4 -0
- package/dist/bundled/assets/poveste.svg.js +4 -0
- package/dist/bundled/components/HomeView.vue.js +5 -0
- package/dist/bundled/components/HomeView.vue2.js +66 -0
- package/dist/bundled/components/app/AppHeader.vue.js +5 -0
- package/dist/bundled/components/app/AppHeader.vue2.js +71 -0
- package/dist/bundled/components/app/AppLogo.vue.js +5 -0
- package/dist/bundled/components/app/AppLogo.vue2.js +29 -0
- package/dist/bundled/components/app/Breadcrumb.vue.js +8 -0
- package/dist/bundled/components/app/Breadcrumb.vue2.js +91 -0
- package/dist/bundled/components/app/HomeCounter.vue.js +5 -0
- package/dist/bundled/components/app/HomeCounter.vue2.js +42 -0
- package/dist/bundled/components/app/InitialLoading.vue.js +5 -0
- package/dist/bundled/components/app/InitialLoading.vue2.js +51 -0
- package/dist/bundled/components/app/MobileOverlay.vue.js +5 -0
- package/dist/bundled/components/app/MobileOverlay.vue2.js +45 -0
- package/dist/bundled/components/base/BaseButton.vue.js +5 -0
- package/dist/bundled/components/base/BaseButton.vue2.js +39 -0
- package/dist/bundled/components/base/BaseCheckbox.vue.js +5 -0
- package/dist/bundled/components/base/BaseCheckbox.vue2.js +78 -0
- package/dist/bundled/components/base/BaseEmpty.vue.js +14 -0
- package/dist/bundled/components/base/BaseIcon.vue.js +8 -0
- package/dist/bundled/components/base/BaseIcon.vue2.js +29 -0
- package/dist/bundled/components/base/BaseKeyboardShortcut.vue.js +5 -0
- package/dist/bundled/components/base/BaseKeyboardShortcut.vue2.js +20 -0
- package/dist/bundled/components/base/BaseListItem.vue.js +5 -0
- package/dist/bundled/components/base/BaseListItem.vue2.js +33 -0
- package/dist/bundled/components/base/BaseListItemLink.vue.js +33 -0
- package/dist/bundled/components/base/BaseListItemLink.vue2.js +26 -0
- package/dist/bundled/components/base/BaseOverflowMenu.vue.js +5 -0
- package/dist/bundled/components/base/BaseOverflowMenu.vue2.js +100 -0
- package/dist/bundled/components/base/BaseOverflowTab.vue.js +36 -0
- package/dist/bundled/components/base/BaseOverflowTab.vue2.js +18 -0
- package/dist/bundled/components/base/BaseSelect.vue.js +5 -0
- package/dist/bundled/components/base/BaseSelect.vue2.js +77 -0
- package/dist/bundled/components/base/BaseSplitPane.vue.js +8 -0
- package/dist/bundled/components/base/BaseSplitPane.vue2.js +183 -0
- package/dist/bundled/components/base/BaseTab.vue.js +36 -0
- package/dist/bundled/components/base/BaseTab.vue2.js +18 -0
- package/dist/bundled/components/base/BaseTag.vue.js +13 -0
- package/dist/bundled/components/command/CommandPrompts.vue.js +5 -0
- package/dist/bundled/components/command/CommandPrompts.vue2.js +91 -0
- package/dist/bundled/components/command/CommandPromptsModal.vue.js +5 -0
- package/dist/bundled/components/command/CommandPromptsModal.vue2.js +45 -0
- package/dist/bundled/components/command/PromptSelect.vue.js +5 -0
- package/dist/bundled/components/command/PromptSelect.vue2.js +142 -0
- package/dist/bundled/components/command/PromptText.vue.js +5 -0
- package/dist/bundled/components/command/PromptText.vue2.js +67 -0
- package/dist/bundled/components/misc/CheckerboardPattern.vue.js +40 -0
- package/dist/bundled/components/misc/HatchedPattern.vue.js +12 -0
- package/dist/bundled/components/panel/ControlsComponentPropItem.vue.js +5 -0
- package/dist/bundled/components/panel/ControlsComponentPropItem.vue2.js +72 -0
- package/dist/bundled/components/panel/ControlsComponentProps.vue.js +5 -0
- package/dist/bundled/components/panel/ControlsComponentProps.vue2.js +45 -0
- package/dist/bundled/components/panel/ControlsComponentState.vue.js +5 -0
- package/dist/bundled/components/panel/ControlsComponentState.vue2.js +41 -0
- package/dist/bundled/components/panel/ControlsComponentStateItem.vue.js +5 -0
- package/dist/bundled/components/panel/ControlsComponentStateItem.vue2.js +46 -0
- package/dist/bundled/components/panel/PaneTabs.vue.js +5 -0
- package/dist/bundled/components/panel/PaneTabs.vue2.js +114 -0
- package/dist/bundled/components/panel/StatePresets.vue.js +5 -0
- package/dist/bundled/components/panel/StatePresets.vue2.js +193 -0
- package/dist/bundled/components/panel/StoryControls.vue.js +5 -0
- package/dist/bundled/components/panel/StoryControls.vue2.js +87 -0
- package/dist/bundled/components/panel/StoryDocs.vue.js +7 -0
- package/dist/bundled/components/panel/StoryDocs.vue2.js +161 -0
- package/dist/bundled/components/panel/StoryEvent.vue.js +5 -0
- package/dist/bundled/components/panel/StoryEvent.vue2.js +59 -0
- package/dist/bundled/components/panel/StoryEvents.vue.js +5 -0
- package/dist/bundled/components/panel/StoryEvents.vue2.js +53 -0
- package/dist/bundled/components/panel/StorySidePanel.vue.js +5 -0
- package/dist/bundled/components/panel/StorySidePanel.vue2.js +83 -0
- package/dist/bundled/components/panel/StorySourceCode.vue.js +8 -0
- package/dist/bundled/components/panel/StorySourceCode.vue2.js +204 -0
- package/dist/bundled/components/search/SearchItem.vue.js +8 -0
- package/dist/bundled/components/search/SearchItem.vue2.js +93 -0
- package/dist/bundled/components/search/SearchItemContent.vue.js +5 -0
- package/dist/bundled/components/search/SearchItemContent.vue2.js +71 -0
- package/dist/bundled/components/search/SearchLoading.vue.js +5 -0
- package/dist/bundled/components/search/SearchLoading.vue2.js +21 -0
- package/dist/bundled/components/search/SearchModal.vue.js +5 -0
- package/dist/bundled/components/search/SearchModal.vue2.js +51 -0
- package/dist/bundled/components/search/SearchPane.vue.js +5 -0
- package/dist/bundled/components/search/SearchPane.vue2.js +272 -0
- package/dist/bundled/components/search/search-docs-data.js +11 -0
- package/dist/bundled/components/search/search-title-data.js +11 -0
- package/dist/bundled/components/story/GenericMountStory.vue.js +5 -0
- package/dist/bundled/components/story/GenericMountStory.vue2.js +34 -0
- package/dist/bundled/components/story/GenericRenderStory.vue.js +5 -0
- package/dist/bundled/components/story/GenericRenderStory.vue2.js +39 -0
- package/dist/bundled/components/story/StoryResponsivePreview.vue.js +8 -0
- package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +207 -0
- package/dist/bundled/components/story/StoryVariantGrid.vue.js +5 -0
- package/dist/bundled/components/story/StoryVariantGrid.vue2.js +146 -0
- package/dist/bundled/components/story/StoryVariantGridItem.vue.js +8 -0
- package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +155 -0
- package/dist/bundled/components/story/StoryVariantListItem.vue.js +8 -0
- package/dist/bundled/components/story/StoryVariantListItem.vue2.js +55 -0
- package/dist/bundled/components/story/StoryVariantSingle.vue.js +8 -0
- package/dist/bundled/components/story/StoryVariantSingle.vue2.js +107 -0
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue.js +5 -0
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +72 -0
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue.js +5 -0
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +128 -0
- package/dist/bundled/components/story/StoryVariantSingleView.vue.js +5 -0
- package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +66 -0
- package/dist/bundled/components/story/StoryView.vue.js +5 -0
- package/dist/bundled/components/story/StoryView.vue2.js +104 -0
- package/dist/bundled/components/story/StoryViewer.vue.js +8 -0
- package/dist/bundled/components/story/StoryViewer.vue2.js +55 -0
- package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue.js +5 -0
- package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue2.js +31 -0
- package/dist/bundled/components/toolbar/ToolbarBackground.vue.js +8 -0
- package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +98 -0
- package/dist/bundled/components/toolbar/ToolbarNewTab.vue.js +5 -0
- package/dist/bundled/components/toolbar/ToolbarNewTab.vue2.js +36 -0
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue.js +5 -0
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +127 -0
- package/dist/bundled/components/toolbar/ToolbarTextDirection.vue.js +5 -0
- package/dist/bundled/components/toolbar/ToolbarTextDirection.vue2.js +27 -0
- package/dist/bundled/components/toolbar/ToolbarTitle.vue.js +5 -0
- package/dist/bundled/components/toolbar/ToolbarTitle.vue2.js +26 -0
- package/dist/bundled/components/tree/StoryGroup.vue.js +5 -0
- package/dist/bundled/components/tree/StoryGroup.vue2.js +74 -0
- package/dist/bundled/components/tree/StoryList.vue.js +5 -0
- package/dist/bundled/components/tree/StoryList.vue2.js +41 -0
- package/dist/bundled/components/tree/StoryListFolder.vue.js +8 -0
- package/dist/bundled/components/tree/StoryListFolder.vue2.js +86 -0
- package/dist/bundled/components/tree/StoryListItem.vue.js +8 -0
- package/dist/bundled/components/tree/StoryListItem.vue2.js +69 -0
- package/dist/bundled/index.js +35 -0
- package/dist/bundled/plugin.js +49 -0
- package/dist/bundled/router.js +32 -0
- package/dist/bundled/sandbox.js +87 -0
- package/dist/bundled/stores/command.js +25 -0
- package/dist/bundled/stores/events.js +29 -0
- package/dist/bundled/stores/folder.js +54 -0
- package/dist/bundled/stores/preview-settings.js +19 -0
- package/dist/bundled/stores/story.js +43 -0
- package/dist/bundled/util/commands.js +57 -0
- package/dist/bundled/util/config.js +8 -0
- package/dist/bundled/util/const.js +10 -0
- package/dist/bundled/util/dark.js +28 -0
- package/dist/bundled/util/docs.js +26 -0
- package/dist/bundled/util/env.js +4 -0
- package/dist/bundled/util/events.js +33 -0
- package/dist/bundled/util/keyboard.js +90 -0
- package/dist/bundled/util/mapping.js +70 -0
- package/dist/bundled/util/open-in-editor.js +6 -0
- package/dist/bundled/util/preview-settings.js +22 -0
- package/dist/bundled/util/responsive.js +6 -0
- package/dist/bundled/util/sandbox.js +11 -0
- package/dist/bundled/util/scroll.js +31 -0
- package/dist/bundled/util/select.js +28 -0
- package/dist/bundled/util/state.js +41 -0
- package/dist/bundled/util/tooltip.js +15 -0
- package/dist/bundled/util/variant.js +21 -0
- package/dist/style.css +2853 -0
- package/package.json +8 -4
- package/postcss-scope-wrapper.cjs +0 -35
- package/postcss.config.cjs +0 -9
- package/scripts/copy.mjs +0 -12
- package/scripts/watchAndCopy.mjs +0 -15
- package/tailwind.config.cjs +0 -137
- package/tsconfig.json +0 -53
- package/vite.config.ts +0 -88
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poveste/app",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"description": "Pre-bundled UI for Poveste",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Sorin Gitlan"
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"src"
|
|
21
|
+
],
|
|
18
22
|
"exports": {
|
|
19
23
|
".": {
|
|
20
24
|
"types": "./dist/index.d.ts",
|
|
@@ -26,9 +30,9 @@
|
|
|
26
30
|
"dependencies": {
|
|
27
31
|
"fuse.js": "^7.0.0",
|
|
28
32
|
"shiki": "^3.0.0",
|
|
29
|
-
"@poveste/controls": "^0.1.
|
|
30
|
-
"@poveste/vendors": "^0.1.
|
|
31
|
-
"@poveste/shared": "^0.1.
|
|
33
|
+
"@poveste/controls": "^0.1.3",
|
|
34
|
+
"@poveste/vendors": "^0.1.3",
|
|
35
|
+
"@poveste/shared": "^0.1.3"
|
|
32
36
|
},
|
|
33
37
|
"devDependencies": {
|
|
34
38
|
"@tailwindcss/typography": "^0.5.15",
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
function isImportRule(node) {
|
|
2
|
-
return node.type === 'atrule' && node.name === 'import'
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
module.exports = (opts = {}) => {
|
|
6
|
-
const { from = ':root', to } = opts
|
|
7
|
-
let params = `(${from})`
|
|
8
|
-
if (to) {
|
|
9
|
-
params += ` to (${to})`
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
return {
|
|
13
|
-
postcssPlugin: 'postcss-scope-wrapper',
|
|
14
|
-
Once(root, { AtRule }) {
|
|
15
|
-
const scopeRule = new AtRule({
|
|
16
|
-
name: 'scope',
|
|
17
|
-
params,
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
const nodesToMove = root.nodes.filter(node => !isImportRule(node))
|
|
21
|
-
|
|
22
|
-
nodesToMove.forEach((node) => {
|
|
23
|
-
if (node.type === 'rule') {
|
|
24
|
-
node.selectors = node.selectors
|
|
25
|
-
.map(selector => (['html', ':root'].includes(selector) ? ':scope' : selector))
|
|
26
|
-
}
|
|
27
|
-
scopeRule.append(node)
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
root.append(scopeRule)
|
|
31
|
-
},
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
module.exports.postcss = true
|
package/postcss.config.cjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
plugins: [
|
|
3
|
-
require('postcss-import'),
|
|
4
|
-
require('tailwindcss/nesting'),
|
|
5
|
-
require('tailwindcss')('./tailwind.config.cjs'),
|
|
6
|
-
require('autoprefixer'),
|
|
7
|
-
require('./postcss-scope-wrapper.cjs')({ from: ':root', to: '.__poveste-render-story:not(.__poveste-render-custom-controls)' }),
|
|
8
|
-
],
|
|
9
|
-
}
|
package/scripts/copy.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import fs from 'fs-extra'
|
|
2
|
-
import { globbySync } from 'globby'
|
|
3
|
-
import { normalizePath } from 'vite'
|
|
4
|
-
|
|
5
|
-
function toDist(file) {
|
|
6
|
-
return normalizePath(file).replace(/^src\//, 'dist/')
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
globbySync('src/**/*').forEach((file) => {
|
|
10
|
-
if (file.endsWith('.vue') || file.endsWith('.ts') || file.endsWith('tsconfig.json')) return
|
|
11
|
-
fs.copy(file, toDist(file))
|
|
12
|
-
})
|
package/scripts/watchAndCopy.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import chokidar from 'chokidar'
|
|
2
|
-
import fs from 'fs-extra'
|
|
3
|
-
import { normalizePath } from 'vite'
|
|
4
|
-
|
|
5
|
-
function toDist(file) {
|
|
6
|
-
return normalizePath(file).replace(/^src\//, 'dist/')
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
// copy non ts files, such as an html or css, to the dist directory whenever
|
|
10
|
-
// they change.
|
|
11
|
-
chokidar
|
|
12
|
-
.watch('src/**/!(*.ts|*.vue|tsconfig.json)')
|
|
13
|
-
.on('change', file => fs.copy(file, toDist(file)))
|
|
14
|
-
.on('add', file => fs.copy(file, toDist(file)))
|
|
15
|
-
.on('unlink', file => fs.remove(toDist(file)))
|
package/tailwind.config.cjs
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
const path = require('pathe')
|
|
2
|
-
const defaultColors = require('tailwindcss/colors')
|
|
3
|
-
const inheritedConfig = require('../../tailwind.config.cjs')
|
|
4
|
-
|
|
5
|
-
// Colors
|
|
6
|
-
|
|
7
|
-
function withOpacityValue(variable) {
|
|
8
|
-
return ({ opacityValue }) => {
|
|
9
|
-
if (opacityValue === undefined) {
|
|
10
|
-
return `rgb(var(${variable}))`
|
|
11
|
-
}
|
|
12
|
-
return `rgb(var(${variable}) / ${opacityValue})`
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const colorKeys = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900]
|
|
17
|
-
const grayKeys = [...colorKeys, 750, 850, 950]
|
|
18
|
-
const themedColors = ['primary', 'gray'].reduce((acc, color) => {
|
|
19
|
-
const keys = (color === 'gray' ? grayKeys : colorKeys)
|
|
20
|
-
for (const key of keys) {
|
|
21
|
-
acc[`${color}-${key}`] = withOpacityValue(`--_poveste-color-${color}-${key}`)
|
|
22
|
-
}
|
|
23
|
-
return acc
|
|
24
|
-
}, {})
|
|
25
|
-
|
|
26
|
-
const excludedDefaultColors = [
|
|
27
|
-
// Grays
|
|
28
|
-
'slate',
|
|
29
|
-
'gray',
|
|
30
|
-
'zinc',
|
|
31
|
-
'neutral',
|
|
32
|
-
'stone',
|
|
33
|
-
// Deprecated colors
|
|
34
|
-
'lightBlue',
|
|
35
|
-
'warmGray',
|
|
36
|
-
'trueGray',
|
|
37
|
-
'coolGray',
|
|
38
|
-
'blueGray',
|
|
39
|
-
]
|
|
40
|
-
|
|
41
|
-
const includedDefaultColors = {}
|
|
42
|
-
for (const key in defaultColors) {
|
|
43
|
-
if (!excludedDefaultColors.includes(key)) {
|
|
44
|
-
includedDefaultColors[key] = defaultColors[key]
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
const colors = {
|
|
49
|
-
...includedDefaultColors,
|
|
50
|
-
white: '#fff',
|
|
51
|
-
black: '#000',
|
|
52
|
-
transparent: 'transparent',
|
|
53
|
-
...themedColors,
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
module.exports = {
|
|
57
|
-
...inheritedConfig,
|
|
58
|
-
prefix: 'htw-',
|
|
59
|
-
content: [
|
|
60
|
-
path.resolve(__dirname, './src/**/*.{vue,js,ts,jsx,tsx,md}'),
|
|
61
|
-
// Include controls CSS directly
|
|
62
|
-
path.resolve(__dirname, '../poveste-controls/src/**/*.{vue,js,ts,jsx,tsx,md}'),
|
|
63
|
-
],
|
|
64
|
-
corePlugins: {
|
|
65
|
-
preflight: false,
|
|
66
|
-
},
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
delete module.exports.theme.extend.colors.primary
|
|
70
|
-
delete module.exports.theme.extend.colors.gray
|
|
71
|
-
module.exports.theme.colors = colors
|
|
72
|
-
|
|
73
|
-
module.exports.plugins.push(require('@tailwindcss/typography'))
|
|
74
|
-
// prose-a:htw-text-primary-500 prose-headings:htw-mb-2 prose-headings:htw-mt-4 first:prose-headings:htw-mt-0 prose-blockquote:htw-ml-0
|
|
75
|
-
module.exports.theme.extend.typography = theme => ({
|
|
76
|
-
DEFAULT: {
|
|
77
|
-
css: {
|
|
78
|
-
'a': {
|
|
79
|
-
'color': theme('colors.primary-500'),
|
|
80
|
-
'textDecoration': 'none',
|
|
81
|
-
|
|
82
|
-
'&:hover': {
|
|
83
|
-
textDecoration: 'underline',
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
'h1, h2, h3, h4, th': {
|
|
88
|
-
'marginBottom': '0.75rem',
|
|
89
|
-
|
|
90
|
-
'&:not(:first-child)': {
|
|
91
|
-
marginTop: '1.25rem',
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
'--tw-prose-invert-quote-borders': theme('colors.gray-800'),
|
|
96
|
-
'--tw-prose-invert-hr': theme('colors.gray-800'),
|
|
97
|
-
|
|
98
|
-
'blockquote': {
|
|
99
|
-
'marginLeft': 0,
|
|
100
|
-
'marginRight': 0,
|
|
101
|
-
'backgroundColor': theme('colors.gray-100'),
|
|
102
|
-
'padding': '.25rem .375rem',
|
|
103
|
-
|
|
104
|
-
'& p:first-child': {
|
|
105
|
-
marginTop: 0,
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
'& p:last-child': {
|
|
109
|
-
marginBottom: 0,
|
|
110
|
-
},
|
|
111
|
-
|
|
112
|
-
'.dark &': {
|
|
113
|
-
backgroundColor: theme('colors.gray-750'),
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
'--tw-prose-invert-bullets': theme('colors.gray-500'),
|
|
118
|
-
|
|
119
|
-
'li': {
|
|
120
|
-
marginTop: '0.1rem',
|
|
121
|
-
marginBottom: '0.1rem',
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
'code': {
|
|
125
|
-
'backgroundColor': theme('colors.gray-500 / 20%'),
|
|
126
|
-
'fontWeight': 'normal',
|
|
127
|
-
'padding': '0.05rem 0.5rem',
|
|
128
|
-
'borderRadius': '0.25rem',
|
|
129
|
-
'fontSize': '0.8rem',
|
|
130
|
-
|
|
131
|
-
'&::before, &::after': {
|
|
132
|
-
display: 'none',
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
},
|
|
137
|
-
})
|
package/tsconfig.json
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ESNext",
|
|
4
|
-
// Volar
|
|
5
|
-
"jsx": "preserve",
|
|
6
|
-
"lib": [
|
|
7
|
-
"ESNext",
|
|
8
|
-
"DOM",
|
|
9
|
-
"DOM.Iterable"
|
|
10
|
-
],
|
|
11
|
-
"baseUrl": ".",
|
|
12
|
-
"rootDir": "src",
|
|
13
|
-
"module": "ESNext",
|
|
14
|
-
"moduleResolution": "node",
|
|
15
|
-
// Alias
|
|
16
|
-
"paths": {
|
|
17
|
-
"floating-vue": ["node_modules/@poveste/vendors/floating-vue"],
|
|
18
|
-
"@iconify/vue": ["node_modules/@poveste/vendors/iconify"],
|
|
19
|
-
"pinia": ["node_modules/@poveste/vendors/pinia"],
|
|
20
|
-
"scroll-into-view-if-needed": ["node_modules/@poveste/vendors/scroll"],
|
|
21
|
-
"vue-router": ["node_modules/@poveste/vendors/vue-router"],
|
|
22
|
-
"@vueuse/core": ["node_modules/@poveste/vendors/vue-use"],
|
|
23
|
-
"vue": ["node_modules/@poveste/vendors/vue"]
|
|
24
|
-
},
|
|
25
|
-
"resolveJsonModule": true,
|
|
26
|
-
"types": [
|
|
27
|
-
"node"
|
|
28
|
-
],
|
|
29
|
-
"strictBindCallApply": true,
|
|
30
|
-
"strictFunctionTypes": true,
|
|
31
|
-
"alwaysStrict": true,
|
|
32
|
-
// Strict
|
|
33
|
-
"noImplicitAny": false,
|
|
34
|
-
"noImplicitThis": true,
|
|
35
|
-
"declaration": false,
|
|
36
|
-
"outDir": "dist",
|
|
37
|
-
"removeComments": false,
|
|
38
|
-
"sourceMap": false,
|
|
39
|
-
"allowSyntheticDefaultImports": true,
|
|
40
|
-
"esModuleInterop": true,
|
|
41
|
-
"skipLibCheck": true,
|
|
42
|
-
"preserveWatchOutput": true
|
|
43
|
-
},
|
|
44
|
-
"include": [
|
|
45
|
-
"src"
|
|
46
|
-
],
|
|
47
|
-
"exclude": [
|
|
48
|
-
"node_modules",
|
|
49
|
-
"generated/**/*",
|
|
50
|
-
"dist/**/*",
|
|
51
|
-
"src/**/*.spec.ts"
|
|
52
|
-
]
|
|
53
|
-
}
|
package/vite.config.ts
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import vue from '@vitejs/plugin-vue'
|
|
2
|
-
import fs from 'fs-extra'
|
|
3
|
-
import { globbySync } from 'globby'
|
|
4
|
-
import { defineConfig } from 'vite'
|
|
5
|
-
|
|
6
|
-
export default defineConfig({
|
|
7
|
-
plugins: [
|
|
8
|
-
vue(),
|
|
9
|
-
{
|
|
10
|
-
name: 'poveste:preserve:import.meta',
|
|
11
|
-
enforce: 'pre',
|
|
12
|
-
transform(code) {
|
|
13
|
-
if (code.includes('import.meta')) {
|
|
14
|
-
return {
|
|
15
|
-
code: code.replace(/import\.meta/g, 'import__meta'),
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
closeBundle() {
|
|
20
|
-
try {
|
|
21
|
-
const files = globbySync('./dist/bundled/**/*.js')
|
|
22
|
-
for (const file of files) {
|
|
23
|
-
const content = fs.readFileSync(file, 'utf-8')
|
|
24
|
-
if (content.includes('import__meta')) {
|
|
25
|
-
fs.writeFileSync(file, content.replace(/import__meta/g, 'import.meta'), 'utf-8')
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
catch (e) {
|
|
30
|
-
console.error(e)
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
|
|
36
|
-
resolve: {
|
|
37
|
-
alias: {
|
|
38
|
-
'floating-vue': '@poveste/vendors/floating-vue',
|
|
39
|
-
'@iconify/vue': '@poveste/vendors/iconify',
|
|
40
|
-
'pinia': '@poveste/vendors/pinia',
|
|
41
|
-
'scroll-into-view-if-needed': '@poveste/vendors/scroll',
|
|
42
|
-
'vue-router': '@poveste/vendors/vue-router',
|
|
43
|
-
'@vueuse/core': '@poveste/vendors/vue-use',
|
|
44
|
-
'vue': '@poveste/vendors/vue',
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
build: {
|
|
49
|
-
emptyOutDir: false,
|
|
50
|
-
outDir: 'dist/bundled',
|
|
51
|
-
lib: {
|
|
52
|
-
entry: '',
|
|
53
|
-
formats: ['es'],
|
|
54
|
-
},
|
|
55
|
-
rollupOptions: {
|
|
56
|
-
external: [
|
|
57
|
-
/\$poveste/,
|
|
58
|
-
/@poveste/,
|
|
59
|
-
// eslint-disable-next-line ts/no-require-imports
|
|
60
|
-
...Object.keys(require('./package.json').dependencies),
|
|
61
|
-
],
|
|
62
|
-
|
|
63
|
-
input: [
|
|
64
|
-
'src/app/api.ts',
|
|
65
|
-
'src/app/index.ts',
|
|
66
|
-
'src/app/sandbox.ts',
|
|
67
|
-
],
|
|
68
|
-
|
|
69
|
-
output: {
|
|
70
|
-
// manualChunks (id) {
|
|
71
|
-
// if (id.includes('node_modules')) {
|
|
72
|
-
// return 'vendor'
|
|
73
|
-
// }
|
|
74
|
-
// },
|
|
75
|
-
entryFileNames: '[name].js',
|
|
76
|
-
chunkFileNames: '[name].js',
|
|
77
|
-
assetFileNames: '[name][extname]',
|
|
78
|
-
// hoistTransitiveImports: false,
|
|
79
|
-
preserveModules: true,
|
|
80
|
-
preserveModulesRoot: 'src/app',
|
|
81
|
-
},
|
|
82
|
-
treeshake: false,
|
|
83
|
-
preserveEntrySignatures: 'strict',
|
|
84
|
-
},
|
|
85
|
-
cssCodeSplit: false,
|
|
86
|
-
minify: false,
|
|
87
|
-
},
|
|
88
|
-
})
|