Skip to content

Commit bc8c946

Browse files
committed
[optimize] Code Block children & Month Calendar style
[optimize] Menu responsive of Preview page [optimize] split Preview page into 2 modules [optimize] upgrade Upstream packages & reduce Dependency count [add] GitHub settings & VS Code extensions
1 parent d9349d9 commit bc8c946

File tree

12 files changed

+3659
-3643
lines changed

12 files changed

+3659
-3643
lines changed

.github/settings.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
2+
3+
repository:
4+
allow_merge_commit: false
5+
6+
delete_branch_on_merge: true
7+
8+
enable_vulnerability_alerts: true
9+
10+
labels:
11+
- name: bug
12+
color: '#d73a4a'
13+
description: Something isn't working
14+
15+
- name: documentation
16+
color: '#0075ca'
17+
description: Improvements or additions to documentation
18+
19+
- name: duplicate
20+
color: '#cfd3d7'
21+
description: This issue or pull request already exists
22+
23+
- name: enhancement
24+
color: '#a2eeef'
25+
description: Some improvements
26+
27+
- name: feature
28+
color: '#16b33f'
29+
description: New feature or request
30+
31+
- name: good first issue
32+
color: '#7057ff'
33+
description: Good for newcomers
34+
35+
- name: help wanted
36+
color: '#008672'
37+
description: Extra attention is needed
38+
39+
- name: invalid
40+
color: '#e4e669'
41+
description: This doesn't seem right
42+
43+
- name: question
44+
color: '#d876e3'
45+
description: Further information is requested
46+
47+
- name: wontfix
48+
color: '#ffffff'
49+
description: This will not be worked on
50+
51+
branches:
52+
- name: main
53+
# https://docs.github.com/en/rest/reference/repos#update-branch-protection
54+
protection:
55+
# Required. Require at least one approving review on a pull request, before merging. Set to null to disable.
56+
required_pull_request_reviews:
57+
# The number of approvals required. (1-6)
58+
required_approving_review_count: 1
59+
# Dismiss approved reviews automatically when a new commit is pushed.
60+
dismiss_stale_reviews: true
61+
# Blocks merge until code owners have reviewed.
62+
require_code_owner_reviews: true
63+
# Specify which users and teams can dismiss pull request reviews.
64+
# Pass an empty dismissal_restrictions object to disable.
65+
# User and team dismissal_restrictions are only available for organization-owned repositories.
66+
# Omit this parameter for personal repositories.
67+
dismissal_restrictions:
68+
# users: []
69+
# teams: []
70+
# Required. Require status checks to pass before merging. Set to null to disable
71+
required_status_checks:
72+
# Required. Require branches to be up to date before merging.
73+
strict: true
74+
# Required. The list of status checks to require in order to merge into this branch
75+
contexts: []
76+
# Required. Enforce all configured restrictions for administrators.
77+
# Set to true to enforce required status checks for repository administrators.
78+
# Set to null to disable.
79+
enforce_admins: true
80+
# Prevent merge commits from being pushed to matching branches
81+
required_linear_history: true
82+
# Required. Restrict who can push to this branch.
83+
# Team and user restrictions are only available for organization-owned repositories.
84+
# Set to null to disable.
85+
restrictions: null

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auto-install-peers = false

.vscode/extensions.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"recommendations": [
3+
"yzhang.markdown-all-in-one",
4+
"jock.svg",
5+
"redhat.vscode-yaml",
6+
"clinyong.vscode-css-modules",
7+
"akamud.vscode-caniuse",
8+
"visualstudioexptteam.intellicode-api-usage-examples",
9+
"pflannery.vscode-versionlens",
10+
"christian-kohler.npm-intellisense",
11+
"esbenp.prettier-vscode",
12+
"rangav.vscode-thunder-client",
13+
"eamodio.gitlens",
14+
"github.vscode-pull-request-github",
15+
"github.vscode-github-actions"
16+
]
17+
}

package.json

Lines changed: 49 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "idea-react",
3-
"version": "1.0.0-rc.28",
3+
"version": "1.0.0-rc.31",
44
"license": "LGPL-3.0-or-later",
55
"author": "[email protected]",
66
"description": "A React advanced components library based on TypeScript & Bootstrap, built by idea2app remote developers team.",
@@ -22,19 +22,19 @@
2222
"types": "dist/index.d.ts",
2323
"main": "dist/index.js",
2424
"dependencies": {
25-
"@editorjs/editorjs": "^2.28.0",
26-
"@editorjs/paragraph": "^2.10.0",
25+
"@editorjs/editorjs": "^2.28.2",
26+
"@editorjs/paragraph": "^2.11.3",
2727
"@react-editor-js/core": "^2.1.0",
28-
"@swc/helpers": "^0.5.2",
29-
"classnames": "^2.3.2",
28+
"@swc/helpers": "^0.5.3",
29+
"classnames": "^2.3.3",
3030
"editorjs-html": "^3.4.3",
31-
"iterable-observer": "^1.0.0",
31+
"iterable-observer": "^1.0.1",
3232
"lodash": "^4.17.21",
33-
"mobx": ">=4",
34-
"mobx-react": ">=6",
33+
"mobx": ">=4 <6.11",
34+
"mobx-react": ">=6 <9.1",
3535
"mobx-react-helper": "^0.2.7",
3636
"prismjs": "^1.29.0",
37-
"react-bootstrap": "^2.8.0",
37+
"react-bootstrap": "^2.9.2",
3838
"react-editor-js": "^2.1.0",
3939
"react-element-to-jsx-string": "^15.0.0",
4040
"web-utility": "^4.1.3"
@@ -45,49 +45,53 @@
4545
},
4646
"devDependencies": {
4747
"@babel/plugin-proposal-class-properties": "^7.18.6",
48-
"@babel/plugin-proposal-decorators": "^7.22.15",
49-
"@microsoft/api-extractor": "^7.37.0",
50-
"@parcel/packager-ts": "~2.9.3",
51-
"@parcel/transformer-typescript-types": "~2.9.3",
48+
"@babel/plugin-proposal-decorators": "^7.23.6",
49+
"@microsoft/api-extractor": "^7.39.0",
50+
"@parcel/packager-ts": "~2.10.3",
51+
"@parcel/transformer-typescript-types": "~2.10.3",
5252
"@storybook/addon-console": "^2.0.0",
53-
"@storybook/addon-essentials": "^7.4.5",
54-
"@storybook/addon-interactions": "^7.4.5",
55-
"@storybook/addon-links": "^7.4.5",
56-
"@storybook/addon-storysource": "^7.4.5",
57-
"@storybook/blocks": "^7.4.5",
58-
"@storybook/react": "^7.4.5",
59-
"@storybook/react-vite": "^7.4.5",
60-
"@storybook/testing-library": "^0.2.1",
61-
"@types/lodash": "^4.14.199",
62-
"@types/node": "^18.17.19",
63-
"@types/prismjs": "^1.26.1",
64-
"@types/react": "^18.2.22",
65-
"@types/react-dom": "^18.2.7",
66-
"@typescript-eslint/eslint-plugin": "^6.7.2",
67-
"@typescript-eslint/parser": "^6.7.2",
68-
"@vitejs/plugin-react": "^4.1.0",
69-
"eslint": "^8.50.0",
70-
"eslint-config-prettier": "^9.0.0",
71-
"eslint-plugin-import": "^2.28.1",
53+
"@storybook/addon-essentials": "^7.6.6",
54+
"@storybook/addon-interactions": "^7.6.6",
55+
"@storybook/addon-links": "^7.6.6",
56+
"@storybook/addon-storysource": "^7.6.6",
57+
"@storybook/blocks": "^7.6.6",
58+
"@storybook/react": "^7.6.6",
59+
"@storybook/react-vite": "^7.6.6",
60+
"@storybook/testing-library": "^0.2.2",
61+
"@types/lodash": "^4.14.202",
62+
"@types/node": "^18.19.3",
63+
"@types/prismjs": "^1.26.3",
64+
"@types/react": "^18.2.45",
65+
"@types/react-dom": "^18.2.18",
66+
"@typescript-eslint/eslint-plugin": "^6.16.0",
67+
"@typescript-eslint/parser": "^6.16.0",
68+
"@vitejs/plugin-react": "^4.2.1",
69+
"eslint": "^8.56.0",
70+
"eslint-config-prettier": "^9.1.0",
71+
"eslint-plugin-import": "^2.29.1",
7272
"eslint-plugin-simple-import-sort": "^10.0.0",
7373
"husky": "^8.0.3",
7474
"koapache": "^2.2.2",
7575
"less": "^4.2.0",
76-
"lint-staged": "^14.0.1",
77-
"parcel": "~2.9.3",
78-
"postcss-preset-env": "^9.1.4",
79-
"prettier": "^3.0.3",
76+
"lint-staged": "^15.2.0",
77+
"parcel": "~2.10.3",
78+
"postcss-preset-env": "^9.3.0",
79+
"prettier": "^3.1.1",
8080
"process": "^0.11.10",
8181
"prop-types": "15.8.1",
8282
"react": "^18.2.0",
8383
"react-dom": "^18.2.0",
84-
"rimraf": "^5.0.1",
85-
"storybook": "^7.4.5",
86-
"ts-node": "^10.9.1",
87-
"typedoc": "^0.25.1",
88-
"typedoc-plugin-mdn-links": "^3.1.0",
89-
"typescript": "~5.2.2",
90-
"vite": "^4.4.9"
84+
"rimraf": "^5.0.5",
85+
"storybook": "^7.6.6",
86+
"typedoc": "^0.25.4",
87+
"typedoc-plugin-mdn-links": "^3.1.9",
88+
"typescript": "~5.3.3",
89+
"vite": "^5.0.10"
90+
},
91+
"pnpm": {
92+
"overrides": {
93+
"@storybook/addon-actions": "~7.5"
94+
}
9195
},
9296
"prettier": {
9397
"singleQuote": true,
@@ -116,8 +120,8 @@
116120
"build": "npm run pack-docs && npm run pack-preview && npm run pack-dist && npm run api-extractor",
117121
"prepublishOnly": "npm test && npm run build",
118122
"dev:storybook": "storybook dev -p 6006",
119-
"build:storybook": "rimraf storybook-static && storybook build -c .storybook",
120-
"preview:storybook": "vite preview --outDir storybook-static",
123+
"build:storybook": "storybook build -c .storybook",
124+
"preview:storybook": "npm run build:storybook && vite preview --outDir storybook-static",
121125
"preview": "cd preview/ && rimraf ../.parcel-cache dist/ && parcel --open"
122126
}
123127
}

0 commit comments

Comments
 (0)