Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from guanguans:master #1

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
01ff318
Update README.md
guanguans Jul 9, 2019
70b6742
Update README.md
guanguans Jul 9, 2019
20d5b20
Update README.md
guanguans Jul 9, 2019
919ffbb
Update FUNDING.yml
guanguans Jul 9, 2019
05e5f86
[ImgBot] Optimize images
ImgBotApp Apr 20, 2020
b016c40
更新创建型设计模式部分
singlepig Nov 18, 2020
b71c5f5
更新结构型设计模式部分
singlepig Nov 18, 2020
b8c119e
更新行为型设计模式部分
singlepig Nov 19, 2020
60e9127
Merge pull request #3 from singlepig/patch-1
guanguans Nov 19, 2020
cc4488f
Merge pull request #2 from guanguans/imgbot
guanguans Nov 19, 2020
b7259a1
Update README.md
guanguans Jan 27, 2021
34fd184
Add github config files
guanguans Sep 16, 2021
c3fc8cc
Update README.md
guanguans Sep 16, 2021
6daa1e7
Add dependabot config file
guanguans Sep 30, 2021
23de287
Update README.md
guanguans Sep 30, 2021
fb0ad0a
Bump actions/checkout from 2 to 3
dependabot[bot] Mar 1, 2022
e714b48
Update README.md
guanguans Mar 28, 2022
8cf0d56
Merge pull request #6 from guanguans/dependabot/github_actions/action…
guanguans Mar 28, 2022
d07efd7
Bump design-patterns-for-humans from `5050fe7` to `77076db`
dependabot[bot] Aug 29, 2022
c3a1fee
Merge pull request #8 from guanguans/dependabot/submodules/design-pat…
guanguans Jan 6, 2023
4e9add5
更新依赖配置与工作流
guanguans Apr 30, 2024
fb50f6d
更新lint与zhlint配置文件
guanguans Apr 30, 2024
34e55c0
调整设计模式说明顺序及格式,提高文档可读性
guanguans Apr 30, 2024
81dbfe9
更新设计模式列表
guanguans Apr 30, 2024
c9549b5
调整BurgerBuilder类代码格式
guanguans Apr 30, 2024
f847c4d
更新README:增加代理模式解释
guanguans Apr 30, 2024
ad711ef
Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0
dependabot[bot] Apr 30, 2024
f29aa99
Merge pull request #13 from guanguans/dependabot/github_actions/depen…
github-actions[bot] Apr 30, 2024
f7cfecc
Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0
dependabot[bot] Jul 5, 2024
e457371
Merge pull request #15 from guanguans/dependabot/github_actions/depen…
github-actions[bot] Jul 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false

[*.{vue,js,scss}]
indent_size = 2
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml,xml,xml.dist}]
indent_size = 2
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# These are supported funding model platforms

patreon: guanguans # Replace with a single Patreon username
custom: # Replace with a single custom sponsorship URL
custom: https://www.guanguans.cn/images/wechat.jpeg
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
time: "21:00"
open-pull-requests-limit: 10

- package-ecosystem: gitsubmodule
directory: "/"
schedule:
interval: daily
time: "21:00"
open-pull-requests-limit: 10
31 changes: 31 additions & 0 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: dependabot-auto-merge
on: pull_request_target

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Auto-merge Dependabot PRs for semver-minor updates
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Auto-merge Dependabot PRs for semver-patch updates
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
25 changes: 25 additions & 0 deletions .github/workflows/lint-md.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: lint markdown

on: [workflow_dispatch, push, pull_request]

jobs:
lint-markdown:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set node version
uses: actions/setup-node@v4

- name: Install lint-md
run: npm install @lint-md/cli -g

- name: Install zhlint
run: npm install zhlint -g

- name: Lint markdown
run: lint-md 'README.md' --config=.lintmdrc --threads

# - name: Lint zh_CN
# run: zhlint 'README.md' --config=.zhlintrc
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
*.DS_Store
*.DS_Store
.history/
35 changes: 35 additions & 0 deletions .lintmdrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"excludeFiles": [
"./.build/**",
"./.github/**",
"./node_modules/**",
"./vendor/**",
"./vendor-bin/**"
],
"rules": {
"space-around-alphabet": 2,
"space-around-number": 2,
"no-empty-code-lang": 2,
"no-empty-url": 2,
"no-empty-list": 2,
"no-empty-code": 2,
"no-empty-inline-code": 2,
"no-empty-blockquote": 2,
"no-special-characters": 2,
"use-standard-ellipsis": 2,
"no-fullwidth-number": 2,
"no-space-in-link": 2,
"no-multiple-space-blockquote": 2,
"correct-title-trailing-punctuation": 2,
"no-space-in-inline-code": 2,
"no-long-code": [
2,
{
"length": 120,
"exclude": [
"dot"
]
}
]
}
}
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .zhlintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/.build
/.github
/node_modules
/vendor
/vendor-bin
/传说部分/地方传说/鸠龙岗的来历.md
7 changes: 7 additions & 0 deletions .zhlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"preset": "default",
"rules": {
"noSinglePair": false,
"noSpaceBetweenFullwidthContent": false
}
}
Binary file removed Docs/images/bridge.png
Binary file not shown.
Loading