Skip to content

Commit

Permalink
0.14.1 (#484)
Browse files Browse the repository at this point in the history
* test(indexes): 新增 `Index` 单元测试用例

* test(indexes): `Indexes` 单测覆盖率提升

* docs(stepper): update stepper demo

re #413

* test: update snapshots

* feat(Cascader): update demo

* feat(search): update demo for search

* docs(slider): update docs and demo (#458)

* fix(slider): update docs and demo

* docs(slider): update docs and demo

* fix(slider): update snap

* Refactor/navbar: 重构NavBar组件 (#391)

* refactor(nav-bar): refactor nav-bar

re #347

* feat(navbar): add homeIcon slot and fixed style

* feat(navbar): update navbar demo

* test(navbar): navbar unit test

re #271

* refactor(navbar): refactor navbar

re #347

* test(Cascader): add unit test for cascader (#452)

* docs: update cascader demo (#451)

* docs(cascader): update demo code

re #413

* docs(cascader): update cascader demo

re #413

* test(Calendar): add unit test for calendar (#454)

* test(Overlay): improve unit test coverage (#455)

* test(Message): improve unit test coverage (#456)

* chore(Collapse): remove useless code (#457)

* docs(upload): update doc and demo 修复初始值无法正常使用问题 (#460)

* docs(upload): update doc and demo 修复 初始值无法显示问题

* fix(upload): update snap

* docs(steps): update doc and demo (#459)

* docs(steps): update doc and demo

* fix(steps): update snap

* docs(collapse): update doc and demo

* fix(collapse): update snap

* docs(acton-sheet): update doc and demo

* fix(action-sheep): update snap

* docs(image-viewer): update demo

* fix(image-viewer): update snap

* docs(list): update demo

* docs(notice-bar): 规范 `NoticeBar` 组件的示例代码 (#465)

* docs(back-top): update doc and demo and styles

* docs(list): update demo (#464)

* fix(action-sheet): fix cr

* fix(action-sheet): update snap

* fix(list): fix button color

* fix(image-viewer): fix cr

* docs(back-top): update doc and demo

* fix(back-top): update snap

* chore: publish v0.14.0 (#469)

* chore: publish v0.14.0

* chore: changelog's changes

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* docs(pull-down-refresh): update docs and demo

* fix(pull-down-refresh): update snap

* feat(progress): update progress docs and demo

* fix(back-top): fix cr

* fix(pull-down-refresh): fix cr

* feat(progress): update progress docs and demo

* feat(progress): update progress docs and demo

* docs(swipe-cell): update docs and demo

* chore: lock @vue/runtime-core version && update snapshot (#474)

* docs(button): refactor button demo

re #413

* fix(back-top): fix cr

* docs(swipe-cell): update docs and demo

* fix(pull-down-refresh): fix cr

* fix(pull-down-refresh): delete file

* fix: remove useless files

* docs(countdown): update countdown demo (#477)

re #413

* docs(image): update image demo

re #413

* docs(image): update image demo

re #413

* test: update test coverage data and badge (#479)

* docs(Loading): update demo #476

* test: update snapshots

* chore: lock tdesign-site-components version (#482)

* chore: publish v0.14.1 (#483)

* chore: publish v0.14.1

* chore: changelog's changes

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Co-authored-by: byq1213 <[email protected]>
Co-authored-by: VeryHandSomeBoy <[email protected]>
Co-authored-by: Y <[email protected]>
Co-authored-by: palmcivet <[email protected]>
Co-authored-by: zhongyuan <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: xxxlj <[email protected]>
Co-authored-by: wwlh200 <[email protected]>
Co-authored-by: xxxlj <[email protected]>
Co-authored-by: lockiechen <[email protected]>
  • Loading branch information
11 people committed Nov 15, 2022
1 parent 5a6c959 commit 8c98051
Show file tree
Hide file tree
Showing 126 changed files with 7,900 additions and 5,662 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ typings
node_modules
yarn-error.log
vite.config.ts

test
2 changes: 1 addition & 1 deletion .github/workflows/pr-spelling.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ jobs:
- uses: actions/checkout@v2
- name: Check spelling
uses: crate-ci/typos@master
with:
with:
config: .github/workflows/typos-config.toml
791 changes: 402 additions & 389 deletions CHANGELOG.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tdesign-mobile-vue",
"purename": "tdesign",
"version": "0.14.0",
"version": "0.14.1",
"description": "tdesign-mobile-vue",
"author": "TDesign Group",
"homepage": "https://tdesign.tencent.com/mobile-vue/",
Expand Down Expand Up @@ -117,7 +117,7 @@
"@vitejs/plugin-vue-jsx": "^1.3.3",
"@vitest/ui": "^0.16.0",
"@vue/eslint-config-typescript": "^9.1.0",
"@vue/runtime-core": "^3.2.31",
"@vue/runtime-core": "3.2.41",
"@vue/test-utils": "^2.0.0-rc.17",
"autoprefixer": "^10.2.4",
"axios": "^0.21.0",
Expand Down Expand Up @@ -161,7 +161,7 @@
"rollup-pluginutils": "^2.8.2",
"tdesign-icons-view": "^0.1.0",
"tdesign-publish-cli": "^0.0.10",
"tdesign-site-components": "^0.11.1",
"tdesign-site-components": "0.11.5",
"tslib": "^2.3.1",
"typescript": "~4.7.2",
"vite": "^2.9.14",
Expand Down
10 changes: 5 additions & 5 deletions scripts/test/generate-coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,27 @@ fs.readFile(resolveCwd('test/unit/coverage/index.html'), 'utf8', (err, html) =>
const groups = Math.ceil(tds.length / size);
let componentCoverage = [];
for (let i = 0; i < groups; i++) {
componentCoverage.push(tds.slice(i * size, (i + 1) * size))
componentCoverage.push(tds.slice(i * size, (i + 1) * size));
}

let resultCoverage = {};
componentCoverage.forEach((item, index) => {
if ( item[0].getAttribute('data-value').indexOf('/') != -1 && item[0].getAttribute('data-value').indexOf('/') === item[0].getAttribute('data-value').lastIndexOf('/')) {
const [, name] = item[0].getAttribute('data-value').split('/');
if (item[0].getAttribute('data-value').indexOf('/') === -1) {
const name = item[0].getAttribute('data-value');
const statements = `${item[2].getAttribute('data-value')}%`;
const branches = `${item[4].getAttribute('data-value')}%`;
const functions = `${item[6].getAttribute('data-value')}%`;
const lines = `${item[8].getAttribute('data-value')}%`;

const key = camelCase(name)
const key = camelCase(name);
resultCoverage[key] = {
statements,
branches,
functions,
lines,
};
}
})
});

const finalRes = `module.exports = ${JSON.stringify(resultCoverage)}`;
fs.writeFileSync(resolveCwd('site/web/test-coverage.js'), finalRes);
Expand Down
1 change: 1 addition & 0 deletions site/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const testConfig = {
coverage: {
reporter: ['text', 'json', 'html'],
reportsDirectory: 'test/unit/coverage',
exclude: ['src/**.{js,ts}', 'src/_common/**', 'src/shared/**', 'src/**/{__test__,demos,style}/**'],
},
};

Expand Down
53 changes: 48 additions & 5 deletions site/web/test-coverage.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,54 @@
module.exports = {
button: { statements: '98.57%', branches: '58.82%', functions: '100%', lines: '98.57%' },
checkbox: { statements: '93.47%', branches: '75.8%', functions: '80%', lines: '93.47%' },
actionSheet: { statements: '95.96%', branches: '86.36%', functions: '94.73%', lines: '95.96%' },
avatar: { statements: '98.1%', branches: '85.29%', functions: '100%', lines: '98.1%' },
backTop: { statements: '100%', branches: '94.11%', functions: '100%', lines: '100%' },
badge: { statements: '97.38%', branches: '84.84%', functions: '100%', lines: '97.38%' },
button: { statements: '100%', branches: '100%', functions: '100%', lines: '100%' },
buttonGroup: { statements: '100%', branches: '100%', functions: '100%', lines: '100%' },
calendar: { statements: '90.62%', branches: '81.66%', functions: '91.66%', lines: '90.62%' },
cascader: { statements: '96.57%', branches: '84.61%', functions: '90.9%', lines: '96.57%' },
cell: { statements: '100%', branches: '95.45%', functions: '100%', lines: '100%' },
checkbox: { statements: '97.9%', branches: '84%', functions: '86.66%', lines: '97.9%' },
collapse: { statements: '97.41%', branches: '81.63%', functions: '88.23%', lines: '97.41%' },
countDown: { statements: '100%', branches: '100%', functions: '100%', lines: '100%' },
dateTimePicker: { statements: '99.24%', branches: '84.04%', functions: '100%', lines: '99.24%' },
dialog: { statements: '99.15%', branches: '87.5%', functions: '100%', lines: '99.15%' },
divider: { statements: '100%', branches: '100%', functions: '100%', lines: '100%' },
drawer: { statements: '100%', branches: '93.75%', functions: '100%', lines: '100%' },
dropdownMenu: { statements: '94.45%', branches: '86.4%', functions: '93.93%', lines: '94.45%' },
fab: { statements: '100%', branches: '100%', functions: '100%', lines: '100%' },
overlay: { statements: '92.55%', branches: '100%', functions: '20%', lines: '92.55%' },
popup: { statements: '95%', branches: '64.7%', functions: '55.55%', lines: '95%' },
shared: { statements: '70.58%', branches: '63.15%', functions: '25%', lines: '70.58%' },
grid: { statements: '98.73%', branches: '85%', functions: '100%', lines: '98.73%' },
image: { statements: '100%', branches: '97.14%', functions: '100%', lines: '100%' },
imageViewer: { statements: '95.79%', branches: '84.84%', functions: '84.61%', lines: '95.79%' },
indexes: { statements: '97.29%', branches: '80.35%', functions: '95.23%', lines: '97.29%' },
input: { statements: '96.75%', branches: '92.85%', functions: '88.88%', lines: '96.75%' },
list: { statements: '100%', branches: '90%', functions: '100%', lines: '100%' },
loading: { statements: '100%', branches: '85.71%', functions: '100%', lines: '100%' },
message: { statements: '92.19%', branches: '84.9%', functions: '84.61%', lines: '92.19%' },
navbar: { statements: '100%', branches: '100%', functions: '100%', lines: '100%' },
noticeBar: { statements: '95.94%', branches: '94.73%', functions: '100%', lines: '95.94%' },
overlay: { statements: '99.01%', branches: '86.66%', functions: '100%', lines: '99.01%' },
picker: { statements: '88.25%', branches: '83.8%', functions: '87.5%', lines: '88.25%' },
popup: { statements: '99%', branches: '92.3%', functions: '88.88%', lines: '99%' },
progress: { statements: '98.58%', branches: '82.6%', functions: '100%', lines: '98.58%' },
pullDownRefresh: { statements: '91.66%', branches: '80.35%', functions: '93.75%', lines: '91.66%' },
radio: { statements: '99.27%', branches: '95.34%', functions: '87.5%', lines: '99.27%' },
radioGroup: { statements: '97.05%', branches: '80%', functions: '100%', lines: '97.05%' },
rate: { statements: '98.55%', branches: '90.9%', functions: '100%', lines: '98.55%' },
result: { statements: '96.58%', branches: '87.5%', functions: '100%', lines: '96.58%' },
search: { statements: '100%', branches: '94.73%', functions: '100%', lines: '100%' },
skeleton: { statements: '99.46%', branches: '93.1%', functions: '100%', lines: '99.46%' },
slider: { statements: '95.01%', branches: '89.7%', functions: '100%', lines: '95.01%' },
stepper: { statements: '100%', branches: '93.18%', functions: '100%', lines: '100%' },
steps: { statements: '99.32%', branches: '91.66%', functions: '100%', lines: '99.32%' },
sticky: { statements: '90.16%', branches: '80%', functions: '100%', lines: '90.16%' },
swipeCell: { statements: '96.05%', branches: '83.33%', functions: '84.61%', lines: '96.05%' },
swiper: { statements: '94.05%', branches: '80%', functions: '100%', lines: '94.05%' },
switch: { statements: '98.05%', branches: '92.85%', functions: '100%', lines: '98.05%' },
tabBar: { statements: '99.18%', branches: '85.29%', functions: '100%', lines: '99.18%' },
tabs: { statements: '98.52%', branches: '80.43%', functions: '100%', lines: '98.52%' },
tag: { statements: '98.62%', branches: '92.85%', functions: '87.5%', lines: '98.62%' },
textarea: { statements: '96%', branches: '88.88%', functions: '83.33%', lines: '96%' },
toast: { statements: '100%', branches: '80%', functions: '100%', lines: '100%' },
upload: { statements: '95.93%', branches: '80.95%', functions: '89.28%', lines: '95.93%' },
};
Loading

0 comments on commit 8c98051

Please sign in to comment.