Skip to content

Commit

Permalink
fix: multi-select height
Browse files Browse the repository at this point in the history
  • Loading branch information
fengtianze committed Apr 9, 2020
1 parent 13a4e39 commit 4bc59ec
Show file tree
Hide file tree
Showing 488 changed files with 54,114 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .commitlintrc.js
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;
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
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 }}
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
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}}
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
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
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.*cache
*.log
coverage
dist
node_modules
release
reports
/report.*.json
1 change: 1 addition & 0 deletions .huskyrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@1stg/husky-config');
1 change: 1 addition & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@1stg/lint-staged');
4 changes: 4 additions & 0 deletions .storybook/addons.js
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';
12 changes: 12 additions & 0 deletions .storybook/config.js
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);
62 changes: 62 additions & 0 deletions .storybook/preview-head.html
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>
4 changes: 4 additions & 0 deletions .storybook/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig",
"include": ["../src", "../stories"]
}
19 changes: 19 additions & 0 deletions .storybook/webpack.config.js
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;
};
Loading

0 comments on commit 4bc59ec

Please sign in to comment.