Skip to content

Commit da7e532

Browse files
committed
initial
0 parents  commit da7e532

40 files changed

+19286
-0
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true

.eslintignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
build/
2+
configs/
3+
es/
4+
lib/
5+
dist/
6+
server/
7+
demo/
8+
node_modules/
9+
.storybook/
10+
.out/
11+
**/__test__/
12+
**/__stories__/
13+
14+
doczrc.js
15+
.eslintrc.js
16+
*.config.js
17+
*.conf.js

.eslintrc.js

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
'use strict';
2+
3+
module.exports = {
4+
env: {
5+
'browser': true,
6+
'es6': true
7+
},
8+
extends: [
9+
'eslint:recommended',
10+
'plugin:vue/recommended',
11+
'plugin:@typescript-eslint/eslint-recommended',
12+
'plugin:prettier/recommended'
13+
],
14+
globals: {
15+
'Atomics': 'readonly',
16+
'SharedArrayBuffer': 'readonly'
17+
},
18+
parser: 'vue-eslint-parser',
19+
parserOptions: {
20+
parser: '@typescript-eslint/parser',
21+
project: './tsconfig.json',
22+
ecmaVersion: 2020,
23+
sourceType: 'module',
24+
extraFileExtensions: ['.vue']
25+
},
26+
plugins: [
27+
'vue',
28+
'@typescript-eslint',
29+
'prettier'
30+
],
31+
rules: {
32+
'vue/html-indent': ['warn', 2],
33+
'vue/html-self-closing': ['warn', {
34+
'html': {
35+
'void': 'never',
36+
'normal': 'always',
37+
'component': 'always'
38+
},
39+
'svg': 'always',
40+
'math': 'always'
41+
}],
42+
'vue/html-quotes': ['warn', 'double', { 'avoidEscape': true }],
43+
'vue/singleline-html-element-content-newline': ['off'],
44+
'@typescript-eslint/indent': ['warn', 2],
45+
'@typescript-eslint/no-empty-interface': ['off'],
46+
'@typescript-eslint/camelcase': ['off'],
47+
'@typescript-eslint/restrict-plus-operands': ['warn'],
48+
'@typescript-eslint/array-type': ['off'],
49+
'@typescript-eslint/no-use-before-define': ['off'],
50+
'@typescript-eslint/no-angle-bracket-type-assertion': ['off'],
51+
'@typescript-eslint/interface-name-prefix': ['off'],
52+
'@typescript-eslint/explicit-member-accessibility': ['warn'],
53+
'@typescript-eslint/consistent-type-assertions': ['warn'],
54+
'@typescript-eslint/no-inferrable-types': ['warn'],
55+
'no-console': ['error', { 'allow': ['warn', 'error', 'info'] }],
56+
'semi': ['error', 'always'],
57+
'prefer-spread': ['warn'],
58+
'no-unused-vars': ['off'],
59+
'no-extra-semi': ['warn'],
60+
'quotes': ['error', 'single'],
61+
'linebreak-style': ['warn', 'unix'],
62+
'prettier/prettier': [
63+
'warn',
64+
{
65+
'printWidth': 50,
66+
'tabWidth': 2,
67+
'singleQuote': true,
68+
'jsxSingleQuote': true,
69+
'semi': true,
70+
'trailingComma': 'none',
71+
'endOfLine': 'auto',
72+
'arrowParens': 'avoid',
73+
'rangeEnd': 0
74+
}
75+
]
76+
}
77+
};

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.idea
2+
.DS_Store
3+
*~
4+
~*
5+
6+
.nyc_output
7+
.docz
8+
.omni_cache
9+
node_modules
10+
lib
11+
es
12+
dist*
13+
14+
*.log

.npmignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
.idea
2+
.DS_Store
3+
*~
4+
~*
5+
6+
.vscode
7+
build
8+
src
9+
*test*
10+
node_modules
11+
.omni_cache
12+
.storybook
13+
demo
14+
server
15+
dist-*
16+
17+
# config files
18+
.eslintignore
19+
.eslintrc.js
20+
.gitignore
21+
*.config.js
22+
*.conf.js
23+
tsconfig.json
24+
25+
_config.yml
26+
.nyc_output
27+
.travis.yml
28+
coverage
29+
.nycrc
30+
mocha.opts
31+
32+
yarn.lock
33+
package-lock.json
34+
pnpm-lock.yaml
35+
36+
# log files
37+
*.log
38+
*.log.*

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/__stories__/
2+
**/__test__/

.storybook/addons.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import '@storybook/addon-actions/register';
2+
import '@storybook/addon-links/register';
3+
import '@storybook/addon-notes/register';
4+
import 'storybook-readme/register';
5+
import '@storybook/addon-options/register';
6+
import '@storybook/addon-viewport/register';
7+
import { addons } from '@storybook/addons';
8+
import theme from './theme';
9+
10+
addons.setConfig({
11+
isFullscreen: false,
12+
showNav: true,
13+
showPanel: true,
14+
panelPosition: 'right',
15+
enableShortcuts: true,
16+
isToolshown: true,
17+
initialActive: 'sidebar',
18+
sidebar: {
19+
showRoots: false,
20+
collapsedRoots: ['other']
21+
},
22+
theme
23+
});

.storybook/config.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import Vue from 'vue';
2+
import Vuetify from "vuetify/lib";
3+
import Uikit from "@foxone/uikit";
4+
import { addDecorator, configure } from '@storybook/vue';
5+
import { withOptions } from '@storybook/addon-options';
6+
import { setConsoleOptions } from '@storybook/addon-console';
7+
import { addReadme } from 'storybook-readme/vue';
8+
9+
Vue.use(Vuetify);
10+
Vue.use(Uikit);
11+
12+
addDecorator(addReadme);
13+
setConsoleOptions({
14+
panelExclude: []
15+
});
16+
withOptions({
17+
name: 'finance-ui'
18+
});
19+
20+
const req = require.context('../src/', true, /.stories.(ts|js)$/);
21+
function loadStories() {
22+
const keys = req.keys();
23+
keys.forEach(filename => req(filename));
24+
};
25+
configure(loadStories, module);

.storybook/manager-head.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<script>
2+
var title = 'finance-ui';
3+
document.title = title;
4+
var observer = new MutationObserver(function(mutations) {
5+
if (document.title.match(/Storybook$/) && title !== document.title) {
6+
document.title = title;
7+
}
8+
}).observe(document.querySelector('title'), {
9+
childList: true,
10+
subtree: true,
11+
characterData: true
12+
});
13+
</script>

.storybook/theme.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { create } from '@storybook/theming';
2+
3+
export default create({
4+
base: 'light',
5+
brandTitle: 'finance-ui',
6+
// brandUrl: '',
7+
// brandImage: ''
8+
});

0 commit comments

Comments
 (0)