Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 93 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
31 changes: 31 additions & 0 deletions workspaces/ts-vue2/packages/cust/cust_h5_tree_library/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
*.log*
.cache
.DS_Store
.idea
.vscode
.eslintcache

# npm
node_modules

# test
**/test/coverage

# dist file
es
lib
dist
dist-theme
assets-package
/site
changelog.generated.md
vetur

*.tgz

# lcap files
.lcap
source.zip
manifest
nasl.extension.*
*@*.zip
2 changes: 2 additions & 0 deletions workspaces/ts-vue2/packages/cust/cust_h5_tree_library/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://docs.npmjs.com/cli/v11/configuring-npm/npmrc
# registry=https://registry.npmmirror.com
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
public/*.js
dist-theme
node_modules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"tabWidth": 2,
"printWidth": 150,
"singleQuote": true,
"trailingComma": "es5"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const config = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-onboarding',
'@storybook/addon-interactions',
],
framework: {
name: '@lcap/storybook-vue-vite',
options: {
builder: {
viteConfigPath: './vite.config.js',
},
},
},
docs: {
autodocs: 'tag',
},
};
export default config;
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<style>
.sidebar-header {
display: none !important;
}

#sidebar-bottom-wrapper {
display: none !important;
}

#tabbutton-storybook-actions-panel {
display: none !important;
}

#tabbutton-chromaui-addon-visual-tests-panel {
display: none !important;
}

#tabbutton-storybook-interactions-panel {
display: none !important;
}

.css-dwidct {
display: none !important;
}
</style>
<script>
window.STORYBOOK_DISABLE_TELEMETRY = true;
window.STORYBOOK_ENABLE_CRASH_REPORTS = false;
window.addEventListener('message', function(e) {
if (e.origin !== 'https://cstest.lcap.codewave-test.163yun.com') {
return;
}

if (e.data && e.data.type === 'reload') {
window.location.reload();
}
});
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import Vue from 'vue';
import * as Components from '@/index';

Object.keys(Components).forEach((key) => {
if (Components[key] && Components[key].name) {
Vue.component(Components[key].name, Components[key]);
} else if (Components[key] && typeof Components[key].install === 'function') {
Vue.use(Components[key]);
}
});

const preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
};

export default preview;
Loading