Skip to content

Commit d508ae2

Browse files
Merge pull request #9 from the-unknown-code/develop
Develop
2 parents f82758c + a80180c commit d508ae2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+564
-650
lines changed

.eslintrc

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,22 @@
1919
"prettier/prettier": ["error", {
2020
"endOfLine": "auto"
2121
}],
22+
"import/extensions": "off",
2223
"import/no-unresolved": 0,
2324
"import/no-extraneous-dependencies": 0,
2425
"vue/no-v-html": "off",
2526
"vue/max-attributes-per-line": "off",
2627
"vue/singleline-html-element-content-newline": "off",
2728
"vue/html-closing-bracket-newline": "off",
28-
"vue/html-self-closing": ["error", {
29-
"html": {
30-
"void": "always",
31-
"normal": "never",
32-
"component": "any"
29+
"vue/html-self-closing": [
30+
"error",
31+
{
32+
"html": {
33+
"void": "always",
34+
"normal": "never",
35+
"component": "any"
36+
}
3337
}
34-
}]
38+
]
3539
}
3640
}

.husky/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.husky/_/husky.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
if [ -z "$husky_skip_init" ]; then
3+
debug () {
4+
[ "$HUSKY_DEBUG" = "1" ] && echo "husky (debug) - $1"
5+
}
6+
7+
readonly hook_name="$(basename "$0")"
8+
debug "starting $hook_name..."
9+
10+
if [ "$HUSKY" = "0" ]; then
11+
debug "HUSKY env variable is set to 0, skipping hook"
12+
exit 0
13+
fi
14+
15+
if [ -f ~/.huskyrc ]; then
16+
debug "sourcing ~/.huskyrc"
17+
. ~/.huskyrc
18+
fi
19+
20+
export readonly husky_skip_init=1
21+
sh -e "$0" "$@"
22+
exitCode="$?"
23+
24+
if [ $exitCode != 0 ]; then
25+
echo "husky - $hook_name hook exited with code $exitCode (error)"
26+
exit $exitCode
27+
fi
28+
29+
exit 0
30+
fi

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

.storybook/images/favicon.png

6.99 KB
Loading

.storybook/main.js

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
const path = require('path')
2+
3+
module.exports = {
4+
core: {
5+
builder: 'webpack5'
6+
},
7+
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
8+
addons: [
9+
'@storybook/preset-scss',
10+
'@storybook/addon-links',
11+
'@storybook/addon-essentials',
12+
{
13+
name: '@storybook/addon-docs',
14+
options: {
15+
vueDocgenOptions: {
16+
alias: {
17+
'@': path.resolve(__dirname, '../')
18+
}
19+
}
20+
}
21+
},
22+
{
23+
name: '@storybook/addon-postcss',
24+
options: {
25+
cssLoaderOptions: {
26+
// When you have splitted your css over multiple files
27+
// and use @import('./other-styles.css')
28+
importLoaders: 1
29+
},
30+
postcssLoaderOptions: {
31+
implementation: require('postcss')
32+
}
33+
}
34+
}
35+
],
36+
webpackFinal: async (config) => {
37+
config.resolve.alias['@'] = path.resolve(__dirname, '../src')
38+
config.module.rules.push({
39+
test: /\.(s[ac]ss|css)$/,
40+
use: [
41+
'postcss-loader',
42+
{
43+
loader: 'sass-loader',
44+
options: {
45+
sassOptions: {
46+
indentWidth: 4,
47+
includePaths: []
48+
}
49+
}
50+
}
51+
]
52+
})
53+
return config
54+
}
55+
}

.storybook/manager-head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<link rel="icon" href="favicon.png" />

.storybook/manager.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { addons } from '@storybook/addons'
2+
import UnknownTheme from './unknown-theme'
3+
4+
addons.setConfig({
5+
theme: UnknownTheme
6+
})

.storybook/preview.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import '../style/tailwind.scss'
2+
import '../style/main.scss'
3+
4+
import { themes } from '@storybook/theming'
5+
6+
export const parameters = {
7+
actions: { argTypesRegex: '^on[A-Z].*' },
8+
controls: {
9+
matchers: {
10+
color: /(background|color)$/i,
11+
date: /Date$/
12+
}
13+
},
14+
docs: {
15+
theme: themes.dark
16+
}
17+
}

.storybook/unknown-theme.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { create } from '@storybook/theming'
2+
3+
export default create({
4+
base: 'dark',
5+
brandTitle: 'IUnknown Storybook',
6+
brandUrl: 'https://theunknown.ch',
7+
fontBase: '"Roboto", sans-serif',
8+
fontCode: 'monospace',
9+
brandImage: 'https://theunknown.ch/version/1620234786727/static/images/unk-logo.png'
10+
})

0 commit comments

Comments
 (0)