-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13a4e39
commit 4bc59ec
Showing
488 changed files
with
54,114 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/config-conventional/index.js | ||
const { cloneDeep, last } = require('lodash'); | ||
const config = cloneDeep(require('@1stg/commitlint-config')); | ||
|
||
last(config.rules['type-enum']).push('icon'); | ||
|
||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Deploy stories | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Build stories | ||
run: yarn storybook:build | ||
- name: Deploy | ||
if: success() | ||
uses: crazy-max/ghaction-github-pages@v1 | ||
with: | ||
build_dir: dist | ||
fqdn: aui.js.org | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Publish package | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Build package | ||
run: yarn build | ||
- name: Publish | ||
run: | | ||
npm set //registry.npmjs.org/:_authToken "$NPM_TOKEN" | ||
npm publish release | ||
env: | ||
NPM_TOKEN: ${{secrets.NPM_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Run unit test | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Run test | ||
run: yarn test:ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.*cache | ||
*.log | ||
coverage | ||
dist | ||
node_modules | ||
release | ||
reports | ||
/report.*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('@1stg/husky-config'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('@1stg/lint-staged'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import '@storybook/addon-options/register'; | ||
import '@storybook/addon-knobs/register'; | ||
import '@storybook/addon-actions/register'; | ||
import '@storybook/addon-storysource/register'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { addParameters, configure } from '@storybook/angular'; | ||
|
||
addParameters({ | ||
options: { | ||
panelPosition: 'right', | ||
theme: { | ||
brandTitle: 'Alauda UI', | ||
}, | ||
}, | ||
}); | ||
|
||
configure(() => require('../stories'), module); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<style> | ||
/* stylelint-disable selector-type-no-unknown */ | ||
html, | ||
#root { | ||
height: 100%; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
padding: 8px; | ||
height: 100%; | ||
box-sizing: border-box; | ||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', | ||
Helvetica, 'Ubuntu', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', | ||
'WenQuanYi Micro Hei', sans-serif; | ||
} | ||
|
||
storybook-dynamic-app-root:first-child, | ||
storybook-dynamic-app-root > ng-component { | ||
display: block; | ||
height: 100%; | ||
} | ||
|
||
a { | ||
color: #006eff; | ||
text-decoration: none; | ||
} | ||
a:hover, | ||
a:active, | ||
a:focus { | ||
color: #0058cc; | ||
} | ||
|
||
[class^='aui-'] { | ||
box-sizing: border-box; | ||
} | ||
[class^='aui-'][hidden] { | ||
display: none; | ||
} | ||
|
||
aui-icon[ng-reflect-aui-tooltip-copy], | ||
aui-icon[auiTooltipCopy] { | ||
cursor: pointer; | ||
} | ||
span + aui-icon[ng-reflect-aui-tooltip-copy], | ||
span + aui-icon[auiTooltipCopy] { | ||
margin-left: 4px; | ||
} | ||
aui-icon[ng-reflect-aui-tooltip-copy]:hover, | ||
aui-icon[auiTooltipCopy]:hover { | ||
color: #006eff; | ||
} | ||
|
||
.aui-dialog aui-form-item:last-child .aui-form-item, | ||
.aui-section__content aui-form-item:last-child .aui-form-item { | ||
margin-bottom: 0; | ||
} | ||
|
||
.aui-tab-label__content aui-icon:first-child .aui-icon { | ||
margin-right: 4px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"extends": "../tsconfig", | ||
"include": ["../src", "../stories"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin'); | ||
|
||
module.exports = ({ config }) => { | ||
config.resolve.plugins = [new TsconfigPathsPlugin()]; | ||
config.module.rules.push({ | ||
test: /stories\/\S+\/index.ts$/, | ||
loaders: [ | ||
{ | ||
loader: '@storybook/source-loader', | ||
options: { | ||
parser: 'typescript', | ||
}, | ||
}, | ||
], | ||
enforce: 'pre', | ||
}); | ||
|
||
return config; | ||
}; |
Oops, something went wrong.