├── dd-alfred ├── .gitignore ├── .npmrc ├── .gitattributes ├── .travis.yml ├── icon.png ├── icons │ ├── doc.png │ └── link.png ├── .editorconfig ├── index.js ├── README.md ├── package.json ├── test │ ├── test-search.js │ └── test.js └── LICENSE ├── dd-search-engine ├── sg-server │ ├── package.json │ └── README.md ├── sg-index-doc │ ├── .vscode │ │ ├── last.sql │ │ └── temp.sql │ ├── src │ │ ├── util │ │ │ ├── url │ │ │ │ └── s-url.ts │ │ │ ├── fs │ │ │ │ └── interface.ts │ │ │ └── markdown │ │ │ │ └── __test__ │ │ │ │ └── md.test.ts │ │ ├── cli │ │ │ ├── sync-wiz.ts │ │ │ ├── stats.ts │ │ │ ├── generate-toc.ts │ │ │ ├── build-index.ts │ │ │ ├── calc-sum.ts │ │ │ ├── sync-hugo.ts │ │ │ ├── generate-summary.ts │ │ │ ├── generate-gitbook.ts │ │ │ └── build-meili-index.ts │ │ ├── service │ │ │ ├── toc │ │ │ │ └── generateTocFromLocal.ts │ │ │ └── wiz │ │ │ │ └── automation.ts │ │ ├── shared │ │ │ └── types.ts │ │ └── config │ │ │ └── dict.ts │ ├── jest.config.js │ ├── tsconfig.json │ ├── README.md │ ├── package.json │ └── .gitignore ├── meilisearch-dashboard │ ├── cypress │ │ ├── support │ │ │ ├── e2e.js │ │ │ └── commands.js │ │ ├── e2e │ │ │ ├── test-no-meilisearch.cy.js │ │ │ ├── test-no-api-key-required.cy.js │ │ │ ├── test-api-key-query-param.cy.js │ │ │ └── test-search.cy.js │ │ └── fixtures │ │ │ └── pokemon.json │ ├── src │ │ ├── version │ │ │ ├── version.js │ │ │ └── client-agents.js │ │ ├── components │ │ │ ├── icons │ │ │ │ ├── svg │ │ │ │ │ ├── arrow_down.svg │ │ │ │ │ ├── cross.svg │ │ │ │ │ ├── search_medium.svg │ │ │ │ │ ├── search_small.svg │ │ │ │ │ ├── indexes.svg │ │ │ │ │ ├── github_logo.svg │ │ │ │ │ ├── document_big.svg │ │ │ │ │ ├── document_medium.svg │ │ │ │ │ ├── meilisearch_logo.svg │ │ │ │ │ └── interrogation_mark.svg │ │ │ │ ├── ArrowDown.js │ │ │ │ ├── Cross.js │ │ │ │ ├── InterrogationMark.js │ │ │ │ ├── SearchMedium.js │ │ │ │ ├── SearchSmall.js │ │ │ │ ├── Picture.js │ │ │ │ ├── Indexes.js │ │ │ │ ├── index.js │ │ │ │ ├── DocumentMedium.js │ │ │ │ ├── DocumentBig.js │ │ │ │ ├── Speed.js │ │ │ │ ├── GithubLogo.js │ │ │ │ ├── Key.js │ │ │ │ ├── KeyBig.js │ │ │ │ ├── SettingsMedium.js │ │ │ │ ├── SettingsBig.js │ │ │ │ └── DiscordLogo.js │ │ │ ├── Badge.js │ │ │ ├── Container.js │ │ │ ├── Box.js │ │ │ ├── Card.js │ │ │ ├── Results │ │ │ │ ├── NoResultForRequest.js │ │ │ │ └── Highlight.js │ │ │ ├── NoSelectOption.js │ │ │ ├── SearchBox.js │ │ │ ├── Link.js │ │ │ ├── EmptyView.js │ │ │ ├── ScrollToTop.js │ │ │ └── Checkbox.js │ │ ├── context │ │ │ └── ApiKeyContext.js │ │ ├── stories │ │ │ ├── Badge.stories.js │ │ │ ├── Card.stories.js │ │ │ ├── Link.stories.js │ │ │ ├── Input.stories.js │ │ │ ├── Stats.stories.js │ │ │ ├── Container.stories.js │ │ │ ├── Toggle.stories.js │ │ │ ├── Modal.stories.js │ │ │ ├── EmptyView.stories.js │ │ │ ├── Checkbox.stories.js │ │ │ ├── IconButton.stories.js │ │ │ ├── Sidebar.stories.js │ │ │ └── Select.stories.js │ │ ├── index.js │ │ ├── hooks │ │ │ └── useLocalStorage.js │ │ ├── GlobalStyle.js │ │ └── theme.js │ ├── public │ │ ├── robots.txt │ │ ├── favicon-32x32.png │ │ ├── fonts │ │ │ ├── Barlow │ │ │ │ └── regular.woff2 │ │ │ └── Work_Sans │ │ │ │ ├── bold.woff2 │ │ │ │ ├── light.woff2 │ │ │ │ ├── medium.woff2 │ │ │ │ └── regular.woff2 │ │ ├── manifest.json │ │ └── logo.svg │ ├── .eslintignore │ ├── .prettierignore │ ├── jsconfig.json │ ├── .prettierrc │ ├── assets │ │ ├── storybook.png │ │ ├── trumen_quick_loop.gif │ │ └── logo.svg │ ├── .github │ │ ├── ISSUE_TEMPLATE │ │ │ ├── other.md │ │ │ ├── config.yml │ │ │ └── bug_report.md │ │ ├── dependabot.yml │ │ ├── workflows │ │ │ ├── release-drafter.yml │ │ │ └── publish-build.yml │ │ ├── scripts │ │ │ └── check-release.sh │ │ └── release-draft-template.yml │ ├── bors.toml │ ├── .storybook │ │ ├── main.js │ │ └── preview.js │ ├── version-script.js │ ├── cypress.config.js │ ├── .gitignore │ ├── LICENCE │ └── .eslintrc.json ├── .gitignore └── sg-index-image │ └── README.md ├── dd-docsify-x ├── tools │ ├── .gitignore │ ├── .npmignore │ ├── bin │ │ ├── docsify-init.js │ │ ├── generate-ts-docs.js │ │ ├── docsify-auto-sidebar.js │ │ └── docsify-sync-to-hugo.js │ ├── .vscode │ │ └── settings.json │ ├── src │ │ └── api-documenter │ │ │ ├── index.ts │ │ │ ├── utils │ │ │ ├── Utilities.ts │ │ │ └── test │ │ │ │ └── __snapshots__ │ │ │ │ └── IndentedWriter.test.ts.snap │ │ │ ├── cli │ │ │ ├── ApiDocumenterCommandLine.ts │ │ │ └── MarkdownAction.ts │ │ │ ├── nodes │ │ │ ├── DocLinkAnchor.ts │ │ │ ├── DocTableCell.ts │ │ │ ├── DocEmphasisSpan.ts │ │ │ ├── DocNoteBox.ts │ │ │ └── DocHeading.ts │ │ │ └── markdown │ │ │ └── test │ │ │ └── __snapshots__ │ │ │ └── CustomMarkdownEmitter.test.ts.snap │ ├── vendor │ │ └── _docsify │ │ │ ├── setup-mermaid.js │ │ │ └── edit-on-github.js │ ├── tsconfig.json │ └── package.json ├── plugins │ ├── sidebar │ │ └── README.md │ ├── toc │ │ └── README.md │ └── search │ │ └── README.md ├── yarn.lock └── LICENSE ├── picgo-plugin-ngte-migrater ├── dist │ ├── i18n │ │ ├── en.d.ts │ │ ├── index.d.ts │ │ ├── zh-CN.d.ts │ │ ├── index.js │ │ ├── zh-CN.js │ │ └── en.js │ ├── index.d.ts │ ├── utils.d.ts │ ├── lib │ │ ├── FileHandler.d.ts │ │ └── Migrater.d.ts │ └── utils.js ├── test │ ├── picgo logo.png │ ├── picgo-logo.png │ └── test.md ├── README.md ├── test.js ├── .github │ └── workflows │ │ ├── manually.yml │ │ └── main.yml └── License ├── dd-translator-for-coder ├── vscode-sg-translate │ ├── .gitignore │ ├── .gitattributes │ ├── .vscode │ │ ├── settings.json │ │ ├── extensions.json │ │ └── launch.json │ ├── demo.gif │ ├── icon.png │ ├── .vscodeignore │ ├── test │ │ ├── index.js │ │ └── extension.test.js │ ├── jsconfig.json │ ├── .eslintrc.json │ ├── CHANGELOG.md │ ├── README.md │ ├── LICENSE.txt │ └── package.json ├── electron-customizable-translator │ ├── .babelrc │ ├── dist │ │ ├── assets │ │ │ ├── menubar.png │ │ │ ├── taskbar.png │ │ │ ├── transee.ico │ │ │ ├── transee.icns │ │ │ ├── iconTemplate.png │ │ │ ├── icon_16x16.ico │ │ │ ├── icon_256x256.png │ │ │ ├── iconTemplate@2x.png │ │ │ └── fonts │ │ │ │ ├── Nunito-Bold.woff2 │ │ │ │ ├── Nunito-Black.woff2 │ │ │ │ ├── Nunito-Italic.woff2 │ │ │ │ ├── Nunito-Light.woff2 │ │ │ │ ├── Nunito-Regular.woff2 │ │ │ │ ├── Nunito-ExtraBold.woff2 │ │ │ │ ├── Nunito-SemiBold.woff2 │ │ │ │ ├── Nunito-BlackItalic.woff2 │ │ │ │ ├── Nunito-BoldItalic.woff2 │ │ │ │ ├── Nunito-ExtraLight.woff2 │ │ │ │ ├── Nunito-LightItalic.woff2 │ │ │ │ ├── Nunito-SemiBoldItalic.woff2 │ │ │ │ ├── Nunito-ExtraBoldItalic.woff2 │ │ │ │ └── Nunito-ExtraLightItalic.woff2 │ │ ├── renderer │ │ │ ├── index.html │ │ │ ├── preferences.html │ │ │ └── welcome.html │ │ └── package.json │ ├── src │ │ └── renderer │ │ │ ├── colors.js │ │ │ ├── svg │ │ │ ├── caret.js │ │ │ ├── microphone.js │ │ │ ├── invert.js │ │ │ └── spinner.js │ │ │ ├── styles.css │ │ │ ├── app │ │ │ ├── error-message.js │ │ │ ├── index.html │ │ │ ├── entry.js │ │ │ ├── loading.js │ │ │ ├── app.js │ │ │ ├── css │ │ │ │ └── app.css │ │ │ ├── store.js │ │ │ └── langs-list.js │ │ │ ├── welcome │ │ │ └── welcome.html │ │ │ ├── preferences │ │ │ └── preferences.html │ │ │ └── components │ │ │ └── checkbox.js │ ├── config │ │ ├── webpack.prod.js │ │ └── webpack.dev.js │ ├── .gitignore │ ├── .eslintrc │ ├── LICENSE │ └── README.md ├── .gitignore └── LICENSE ├── homepage └── threejs-scroll-animation │ ├── .gitignore │ ├── jeff.png │ ├── moon.jpg │ ├── normal.jpg │ ├── space.jpg │ ├── package.json │ ├── README.md │ ├── favicon.svg │ └── style.css ├── dd-coding-helper ├── .gitignore ├── vscode-extension │ ├── images │ │ ├── logo.png │ │ ├── tips.gif │ │ └── timerConfig.png │ ├── CHANGELOG.md │ ├── .vscode │ │ ├── extensions.json │ │ ├── tasks.json │ │ ├── settings.json │ │ └── launch.json │ ├── .vscodeignore │ ├── tslint.json │ ├── src │ │ ├── test │ │ │ ├── suite │ │ │ │ ├── extension.test.ts │ │ │ │ └── index.ts │ │ │ └── runTest.ts │ │ └── utils │ │ │ └── convertToMilliseconds.ts │ ├── tsconfig.json │ └── README.md └── sg-code-analysis │ └── README.md ├── .github └── ISSUE_TEMPLATE │ ├── custom.md │ ├── feature_request.md │ └── bug_report.md ├── .gitignore └── LICENSE /dd-alfred/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /dd-alfred/.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false 2 | -------------------------------------------------------------------------------- /dd-search-engine/sg-server/package.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dd-search-engine/sg-index-doc/.vscode/last.sql: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dd-search-engine/sg-index-doc/.vscode/temp.sql: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dd-docsify-x/tools/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | build 3 | -------------------------------------------------------------------------------- /dd-alfred/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.js text eol=lf 3 | -------------------------------------------------------------------------------- /dd-docsify-x/tools/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | package-lock.json 3 | -------------------------------------------------------------------------------- /dd-docsify-x/plugins/sidebar/README.md: -------------------------------------------------------------------------------- 1 | # About 2 | 3 | ## Motivation & Credits 4 | -------------------------------------------------------------------------------- /picgo-plugin-ngte-migrater/dist/i18n/en.d.ts: -------------------------------------------------------------------------------- 1 | export declare const en: ILocales; 2 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/cypress/support/e2e.js: -------------------------------------------------------------------------------- 1 | import './commands' 2 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/version/version.js: -------------------------------------------------------------------------------- 1 | export default '0.2.7' 2 | -------------------------------------------------------------------------------- /dd-search-engine/sg-index-doc/src/util/url/s-url.ts: -------------------------------------------------------------------------------- 1 | /** 从指定服务商处将长 URL 解析为短 URL */ 2 | -------------------------------------------------------------------------------- /dd-alfred/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '8' 4 | - '6' 5 | - '4' 6 | -------------------------------------------------------------------------------- /dd-docsify-x/tools/bin/docsify-init.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../build/docsify-init') -------------------------------------------------------------------------------- /dd-alfred/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-alfred/icon.png -------------------------------------------------------------------------------- /dd-docsify-x/tools/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "typescript.tsdk": "node_modules/typescript/lib" 3 | } -------------------------------------------------------------------------------- /dd-translator-for-coder/vscode-sg-translate/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .vscode-test/ 3 | *.vsix 4 | -------------------------------------------------------------------------------- /dd-docsify-x/tools/bin/generate-ts-docs.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../build/api-documenter') 3 | -------------------------------------------------------------------------------- /homepage/threejs-scroll-animation/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | dist 4 | dist-ssr 5 | *.local -------------------------------------------------------------------------------- /dd-alfred/icons/doc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-alfred/icons/doc.png -------------------------------------------------------------------------------- /dd-alfred/icons/link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-alfred/icons/link.png -------------------------------------------------------------------------------- /dd-docsify-x/tools/bin/docsify-auto-sidebar.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../build/docsify-auto-sidebar') -------------------------------------------------------------------------------- /dd-docsify-x/tools/bin/docsify-sync-to-hugo.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../build/docsify-sync-to-hugo') -------------------------------------------------------------------------------- /dd-search-engine/sg-index-doc/src/cli/sync-wiz.ts: -------------------------------------------------------------------------------- 1 | import { wizSync } from '../service/wiz/sync'; 2 | 3 | wizSync(); 4 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": ["transform-object-rest-spread"] 3 | } -------------------------------------------------------------------------------- /dd-docsify-x/yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | -------------------------------------------------------------------------------- /dd-search-engine/sg-index-doc/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testEnvironment: 'node', 4 | }; -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/.eslintignore: -------------------------------------------------------------------------------- 1 | build/ 2 | data.ms/ 3 | public/ 4 | node_modules/ 5 | build/* 6 | src/components/icons/* -------------------------------------------------------------------------------- /dd-translator-for-coder/vscode-sg-translate/.gitattributes: -------------------------------------------------------------------------------- 1 | # Set default behavior to automatically normalize line endings. 2 | * text=auto 3 | 4 | -------------------------------------------------------------------------------- /homepage/threejs-scroll-animation/jeff.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/homepage/threejs-scroll-animation/jeff.png -------------------------------------------------------------------------------- /homepage/threejs-scroll-animation/moon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/homepage/threejs-scroll-animation/moon.jpg -------------------------------------------------------------------------------- /dd-coding-helper/.gitignore: -------------------------------------------------------------------------------- 1 | vscode-extension/out 2 | vscode-extension/node_modules 3 | vscode-extension/.vscode-test/ 4 | vscode-extension/*.vsix 5 | -------------------------------------------------------------------------------- /dd-docsify-x/plugins/toc/README.md: -------------------------------------------------------------------------------- 1 | # About 2 | 3 | ## Motivation & Credits 4 | 5 | - https://github.com/mrpotatoes/docsify-toc/tree/master/dist 6 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/.prettierignore: -------------------------------------------------------------------------------- 1 | build/ 2 | data.ms/ 3 | assets/ 4 | public/ 5 | node_modules/ 6 | .github/ 7 | .storybook/ 8 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": "src" 4 | }, 5 | "include": ["src"] 6 | } 7 | -------------------------------------------------------------------------------- /dd-translator-for-coder/vscode-sg-translate/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | // Place your settings in this file to overwrite default and user settings. 2 | { 3 | } -------------------------------------------------------------------------------- /homepage/threejs-scroll-animation/normal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/homepage/threejs-scroll-animation/normal.jpg -------------------------------------------------------------------------------- /homepage/threejs-scroll-animation/space.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/homepage/threejs-scroll-animation/space.jpg -------------------------------------------------------------------------------- /picgo-plugin-ngte-migrater/test/picgo logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/picgo-plugin-ngte-migrater/test/picgo logo.png -------------------------------------------------------------------------------- /picgo-plugin-ngte-migrater/test/picgo-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/picgo-plugin-ngte-migrater/test/picgo-logo.png -------------------------------------------------------------------------------- /dd-coding-helper/vscode-extension/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-coding-helper/vscode-extension/images/logo.png -------------------------------------------------------------------------------- /dd-coding-helper/vscode-extension/images/tips.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-coding-helper/vscode-extension/images/tips.gif -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "trailingComma": "es5", 3 | "tabWidth": 2, 4 | "semi": false, 5 | "singleQuote": true 6 | } 7 | -------------------------------------------------------------------------------- /dd-translator-for-coder/vscode-sg-translate/demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/vscode-sg-translate/demo.gif -------------------------------------------------------------------------------- /dd-translator-for-coder/vscode-sg-translate/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/vscode-sg-translate/icon.png -------------------------------------------------------------------------------- /dd-coding-helper/vscode-extension/images/timerConfig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-coding-helper/vscode-extension/images/timerConfig.png -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/assets/storybook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-search-engine/meilisearch-dashboard/assets/storybook.png -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/version/client-agents.js: -------------------------------------------------------------------------------- 1 | import PACKAGE_VERSION from './version' 2 | 3 | export default [`Meilisearch mini-dashboard (v${PACKAGE_VERSION})`] 4 | -------------------------------------------------------------------------------- /dd-translator-for-coder/vscode-sg-translate/.vscodeignore: -------------------------------------------------------------------------------- 1 | .vscode/** 2 | .vscode-test/** 3 | test/** 4 | .gitignore 5 | jsconfig.json 6 | vsc-extension-quickstart.md 7 | .eslintrc.json 8 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/public/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-search-engine/meilisearch-dashboard/public/favicon-32x32.png -------------------------------------------------------------------------------- /picgo-plugin-ngte-migrater/README.md: -------------------------------------------------------------------------------- 1 | ## picgo-plugin-ngte-migrater 2 | 3 | ```sh 4 | # !/bin/bash 5 | 6 | picgo --config ~/Library/Application\ Support/picgo/data.json migrate $0 7 | ``` 8 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/.github/ISSUE_TEMPLATE/other.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Other 3 | about: Any other topic you want to talk about. 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | --- -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/assets/trumen_quick_loop.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-search-engine/meilisearch-dashboard/assets/trumen_quick_loop.gif -------------------------------------------------------------------------------- /dd-search-engine/sg-server/README.md: -------------------------------------------------------------------------------- 1 | # sg-server 2 | 3 | # Features 4 | 5 | - 支撑微信公众号、微信小程序等 6 | 7 | # Motivation & Credits 8 | 9 | - [co-wechat-api](http://doxmate.cool/node-webot/co-wechat-api) -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/public/fonts/Barlow/regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-search-engine/meilisearch-dashboard/public/fonts/Barlow/regular.woff2 -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/public/fonts/Work_Sans/bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-search-engine/meilisearch-dashboard/public/fonts/Work_Sans/bold.woff2 -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/custom.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Custom issue template 3 | about: Describe this issue template's purpose here. 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | 11 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/public/fonts/Work_Sans/light.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-search-engine/meilisearch-dashboard/public/fonts/Work_Sans/light.woff2 -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/public/fonts/Work_Sans/medium.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-search-engine/meilisearch-dashboard/public/fonts/Work_Sans/medium.woff2 -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/public/fonts/Work_Sans/regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-search-engine/meilisearch-dashboard/public/fonts/Work_Sans/regular.woff2 -------------------------------------------------------------------------------- /dd-coding-helper/vscode-extension/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | 1.0.0 implement timer 4 | 5 | 0.4.0 bug fixes 6 | 7 | 0.3.0 Updated README / Changelog 8 | 9 | 0.2.0: Updated README 10 | 11 | 0.1.0: Initial -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/menubar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/menubar.png -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/taskbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/taskbar.png -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/transee.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/transee.ico -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/transee.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/transee.icns -------------------------------------------------------------------------------- /picgo-plugin-ngte-migrater/dist/i18n/index.d.ts: -------------------------------------------------------------------------------- 1 | import { PicGo } from 'picgo'; 2 | export declare const initI18n: (ctx: PicGo) => void; 3 | export declare const T: (ctx: PicGo) => (key: ILocalesKey, args?: any) => string; 4 | -------------------------------------------------------------------------------- /dd-docsify-x/plugins/search/README.md: -------------------------------------------------------------------------------- 1 | # About 2 | 3 | ## Motivation & Credits 4 | 5 | - https://github.com/kiwicom/docsify-lunr-search/blob/master/search.js 6 | - https://github.com/peterbedorjr/docsify-algolia-search-plugin 7 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/iconTemplate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/iconTemplate.png -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/icon_16x16.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/icon_16x16.ico -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/icon_256x256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/icon_256x256.png -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/src/renderer/colors.js: -------------------------------------------------------------------------------- 1 | export const frameColor = 'rgba(26, 26, 26, 0.9)' 2 | export const bgColor = 'rgb(42, 42, 42)' 3 | export const bgTransparent = 'rgba(42, 42, 42, 0.9)' 4 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/iconTemplate@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/iconTemplate@2x.png -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/config/webpack.prod.js: -------------------------------------------------------------------------------- 1 | const merge = require('webpack-merge') 2 | const config = require('./webpack.config') 3 | 4 | module.exports = merge(config, { 5 | 6 | plugins: [ ] 7 | 8 | }) 9 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-Bold.woff2 -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-Black.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-Black.woff2 -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-Italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-Italic.woff2 -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-Light.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-Light.woff2 -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-Regular.woff2 -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-ExtraBold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-ExtraBold.woff2 -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-SemiBold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-SemiBold.woff2 -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/bors.toml: -------------------------------------------------------------------------------- 1 | 2 | status = [ 3 | 'linter-check', 4 | 'cypress_no_meilisearch', 5 | 'cypress_meilisearch-no-api-key', 6 | 'cypress_meilisearch-api-key', 7 | ] 8 | # 1 hour timeout 9 | timeout-sec = 3600 10 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-BlackItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-BlackItalic.woff2 -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-BoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-BoldItalic.woff2 -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-ExtraLight.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-ExtraLight.woff2 -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-LightItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-LightItalic.woff2 -------------------------------------------------------------------------------- /dd-translator-for-coder/vscode-sg-translate/.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See http://go.microsoft.com/fwlink/?LinkId=827846 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "dbaeumer.vscode-eslint" 6 | ] 7 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | build/ 3 | 4 | # Ignore Gradle GUI config 5 | gradle-app.setting 6 | 7 | # Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) 8 | !gradle-wrapper.jar 9 | 10 | # Cache of project 11 | .gradletasknamecache 12 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-SemiBoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-SemiBoldItalic.woff2 -------------------------------------------------------------------------------- /dd-coding-helper/vscode-extension/.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See http://go.microsoft.com/fwlink/?LinkId=827846 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "ms-vscode.vscode-typescript-tslint-plugin", 6 | ] 7 | } -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | 3 | publish.sh 4 | 5 | yarn.lock 6 | yarn-error.log 7 | package-lock.json 8 | 9 | .DS_Store 10 | 11 | dist/renderer/*.js 12 | dist/renderer/*.map 13 | 14 | dist/build/ 15 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-ExtraBoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-ExtraBoldItalic.woff2 -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-ExtraLightItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/dev-and-docs/master/dd-translator-for-coder/electron-customizable-translator/dist/assets/fonts/Nunito-ExtraLightItalic.woff2 -------------------------------------------------------------------------------- /dd-alfred/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = tab 5 | end_of_line = lf 6 | charset = utf-8 7 | trim_trailing_whitespace = true 8 | insert_final_newline = true 9 | 10 | [{package.json,*.yml}] 11 | indent_style = space 12 | indent_size = 2 13 | -------------------------------------------------------------------------------- /dd-search-engine/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | build/ 3 | 4 | # Ignore Gradle GUI config 5 | gradle-app.setting 6 | 7 | # Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) 8 | !gradle-wrapper.jar 9 | 10 | # Cache of project 11 | .gradletasknamecache 12 | -------------------------------------------------------------------------------- /dd-translator-for-coder/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | build/ 3 | 4 | # Ignore Gradle GUI config 5 | gradle-app.setting 6 | 7 | # Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) 8 | !gradle-wrapper.jar 9 | 10 | # Cache of project 11 | .gradletasknamecache 12 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "parserOptions": { 3 | "ecmaVersion": 8, 4 | "sourceType": "module", 5 | "ecmaFeatures": { 6 | "jsx": true, 7 | "experimentalObjectRestSpread": true 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /dd-coding-helper/vscode-extension/.vscodeignore: -------------------------------------------------------------------------------- 1 | .vscode/** 2 | vscode-extension/.vscode-test/** 3 | vscode-extension/out/test/** 4 | vscode-extension/src/** 5 | .gitignore 6 | vscode-extension/vsc-extension-quickstart.md 7 | **/tsconfig.json 8 | **/tslint.json 9 | **/*.map 10 | **/*.ts -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: Meilisearch Project Issues 4 | url: https://github.com/meilisearch/meilisearch/issues 5 | about: Please report issues regarding Meilisearch's code base here -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/icons/svg/arrow_down.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /dd-translator-for-coder/vscode-sg-translate/test/index.js: -------------------------------------------------------------------------------- 1 | const testRunner = require('vscode/lib/testrunner'); 2 | 3 | testRunner.configure({ 4 | ui: 'tdd', // the TDD UI is being used in extension.test.js (suite, test, etc.) 5 | useColors: true // colored output from test results 6 | }); 7 | 8 | module.exports = testRunner; -------------------------------------------------------------------------------- /picgo-plugin-ngte-migrater/dist/index.d.ts: -------------------------------------------------------------------------------- 1 | import { IGuiMenuItem, PicGo, IPluginConfig } from 'picgo'; 2 | declare const _default: (ctx: PicGo) => { 3 | register: () => void; 4 | config: (ctx: PicGo) => IPluginConfig[]; 5 | guiMenu: (ctx: PicGo) => IGuiMenuItem[]; 6 | migrateFiles: any; 7 | }; 8 | export = _default; 9 | -------------------------------------------------------------------------------- /dd-translator-for-coder/vscode-sg-translate/test/extension.test.js: -------------------------------------------------------------------------------- 1 | /* global suite, test */ 2 | const assert = require('assert'); 3 | 4 | suite("Extension Tests", function() { 5 | test("Something 1", function() { 6 | assert.equal(-1, [1, 2, 3].indexOf(5)); 7 | assert.equal(-1, [1, 2, 3].indexOf(0)); 8 | }); 9 | }); -------------------------------------------------------------------------------- /dd-translator-for-coder/vscode-sg-translate/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es6", 5 | "checkJs": false, /* Typecheck .js files. */ 6 | "lib": [ 7 | "es6" 8 | ] 9 | }, 10 | "exclude": [ 11 | "node_modules" 12 | ] 13 | } -------------------------------------------------------------------------------- /homepage/threejs-scroll-animation/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "three-demo", 3 | "version": "0.0.0", 4 | "scripts": { 5 | "dev": "vite", 6 | "build": "vite build", 7 | "serve": "vite preview" 8 | }, 9 | "devDependencies": { 10 | "vite": "^2.3.0" 11 | }, 12 | "dependencies": { 13 | "three": "^0.128.0" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /dd-coding-helper/vscode-extension/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "no-string-throw": true, 4 | "no-unused-expression": true, 5 | "no-duplicate-variable": true, 6 | "curly": true, 7 | "class-name": true, 8 | "semicolon": [ 9 | true, 10 | "always" 11 | ], 12 | "triple-equals": true 13 | }, 14 | "defaultSeverity": "warning" 15 | } 16 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/context/ApiKeyContext.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | const ApiKeyContext = React.createContext({ 4 | apiKey: '', 5 | setApiKey: () => {}, 6 | }) 7 | 8 | export const ApiKeyProvider = ApiKeyContext.Provider 9 | export const ApiKeyConsumer = ApiKeyContext.Consumer 10 | 11 | export default ApiKeyContext 12 | -------------------------------------------------------------------------------- /homepage/threejs-scroll-animation/README.md: -------------------------------------------------------------------------------- 1 | # Scrollable 3D Animation with Three.js 2 | 3 | - Watch the [full tutorial](https://youtu.be/Q7AOvWpIVHU) on YouTube 4 | - [Scrollable Three.js Animation](https://fireship.io/snippets/threejs-scrollbar-animation) Snippet 5 | 6 | ## Usage 7 | 8 | ``` 9 | git clone 10 | npm install 11 | npm run dev 12 | ``` -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/renderer/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Transee 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /dd-coding-helper/sg-code-analysis/README.md: -------------------------------------------------------------------------------- 1 | # sg-code-analysis 2 | 3 | # Motivation & Credits 4 | 5 | - [Coca #Project#](https://github.com/phodal/coca): Coca is a toolbox which is design for legacy system refactoring and analysis, includes call graph, concept analysis, api tree, design patterns suggest. Coca 是一个用于系统重构、系统迁移和系统分析的瑞士军刀。它可以分析代码中的 badsmell,行数统计,分析调用与依赖,进行 Git 分析,以及自动化重构等。 6 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/renderer/preferences.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Preferences 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/dist/renderer/welcome.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Welcome Guide 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/stories/Badge.stories.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | import Badge from 'components/Badge' 4 | 5 | export default { 6 | title: 'Components/Badge', 7 | component: Badge, 8 | } 9 | 10 | const Template = (args) => 11 | 12 | export const Default = Template.bind({}) 13 | Default.args = { 14 | children: '4762', 15 | } 16 | -------------------------------------------------------------------------------- /dd-search-engine/sg-index-doc/src/cli/stats.ts: -------------------------------------------------------------------------------- 1 | import { calcStats } from '../service/stats/calcStats'; 2 | 3 | const program = require('commander'); 4 | 5 | program 6 | .command('stats') 7 | .description('index docs from several repos') 8 | .action(async function() { 9 | const resp = await calcStats(); 10 | console.log(resp); 11 | }); 12 | 13 | program.parse(process.argv); 14 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/config/webpack.dev.js: -------------------------------------------------------------------------------- 1 | const merge = require("webpack-merge"); 2 | const config = require("./webpack.config"); 3 | 4 | module.exports = merge(config, { 5 | devtool: "source-map", 6 | 7 | devServer: { 8 | port: 8182, 9 | contentBase: "./src/renderer", 10 | publicPath: "http://localhost:8182/build/" 11 | } 12 | }); 13 | -------------------------------------------------------------------------------- /picgo-plugin-ngte-migrater/test/test.md: -------------------------------------------------------------------------------- 1 | ## Test case 2 | 3 | ### url 4 | 5 | ![](https://raw.githubusercontent.com/Molunerfinn/test/master/img/logo__2022-08-08%2B17_34_11.jpeg) 6 | 7 | test 8 | 9 | ### local file 10 | 11 | ![](./picgo-logo.png) 12 | 13 | test -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/src/renderer/svg/caret.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import styled from 'styled-components' 3 | 4 | export default () => ( 5 | 6 | 7 | 8 | ) -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/.storybook/main.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | core: { 3 | builder: 'webpack5', 4 | }, 5 | stories: [ 6 | "../src/**/*.stories.mdx", 7 | "../src/**/*.stories.@(js|jsx|ts|tsx)" 8 | ], 9 | addons: [ 10 | "@storybook/addon-links", 11 | "@storybook/addon-essentials", 12 | "@storybook/preset-create-react-app" 13 | ], 14 | staticDirs: ['../public'], 15 | } -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/stories/Card.stories.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | import Card from 'components/Card' 4 | 5 | export default { 6 | title: 'Components/Card', 7 | component: Card, 8 | } 9 | 10 | const Template = (args) => 11 | 12 | export const Default = Template.bind({}) 13 | Default.args = { 14 | children: 'I’m a Card', 15 | } 16 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/cypress/e2e/test-no-meilisearch.cy.js: -------------------------------------------------------------------------------- 1 | describe(`Test without Meilisearch running`, () => { 2 | beforeEach(() => { 3 | cy.visit('/') 4 | }) 5 | 6 | it('Should visit the dashboard', () => { 7 | cy.url().should('match', /\//) 8 | }) 9 | 10 | it('Should invite to start Meilisearch', () => { 11 | cy.contains('It seems like Meilisearch isn’t running') 12 | }) 13 | }) 14 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon-32x32.png", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | } 10 | ], 11 | "start_url": ".", 12 | "display": "standalone", 13 | "theme_color": "#000000", 14 | "background_color": "#ffffff" 15 | } 16 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/src/renderer/styles.css: -------------------------------------------------------------------------------- 1 | :root { 2 | --groundColor: rgba(42, 42, 42, 1); 3 | } 4 | 5 | * { 6 | padding: 0; 7 | margin: 0; 8 | font-family: 'Nunito', sans-serif; 9 | font-weight: 300; 10 | } 11 | 12 | body { 13 | font-size: 14px; 14 | background: var(--groundColor); 15 | overflow: hidden; 16 | } 17 | 18 | body::-webkit-scrollbar { 19 | display: none; 20 | } 21 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: 'npm' 4 | directory: '/' 5 | schedule: 6 | interval: 'daily' 7 | labels: 8 | - skip-changelog 9 | - dependencies 10 | ignore: 11 | - dependency-name: '*storybook*' 12 | - dependency-name: "*eslint*" 13 | - dependency-name: "*prettier*" 14 | - dependency-name: "*cypress*" 15 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import ReactDOM from 'react-dom' 3 | import { ThemeProvider } from 'styled-components' 4 | 5 | import theme from 'theme' 6 | import App from 'App' 7 | import GlobalStyle from 'GlobalStyle' 8 | 9 | ReactDOM.render( 10 | 11 | 12 | 13 | , 14 | document.getElementById('root') 15 | ) 16 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/stories/Link.stories.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | import Link from 'components/Link' 4 | 5 | export default { 6 | title: 'Components/Link', 7 | component: Link, 8 | } 9 | 10 | const Template = (args) => 11 | 12 | export const Default = Template.bind({}) 13 | Default.args = { 14 | href: 'https://docs.meilisearch.com/', 15 | children: 'Go to documentation', 16 | } 17 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/.github/workflows/release-drafter.yml: -------------------------------------------------------------------------------- 1 | name: Release Drafter 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | 8 | jobs: 9 | update_release_draft: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: release-drafter/release-drafter@v5 13 | with: 14 | config-name: release-draft-template.yml 15 | env: 16 | GITHUB_TOKEN: ${{ secrets.RELEASE_DRAFTER_TOKEN }} 17 | -------------------------------------------------------------------------------- /picgo-plugin-ngte-migrater/dist/utils.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import { IImgSize } from 'picgo'; 3 | interface IImgSizeInfo extends IImgSize { 4 | type?: string; 5 | } 6 | export declare const getImageSize: (buffer: Buffer) => IImgSizeInfo; 7 | export declare const isUrl: (url: string) => boolean; 8 | export declare const isUrlEncode: (url: string) => boolean; 9 | export declare const handleUrlEncode: (url: string) => string; 10 | export {}; 11 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/icons/svg/cross.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /dd-search-engine/sg-index-doc/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "rootDir": "src", 4 | "outDir": "dist", 5 | "module": "commonjs", 6 | "moduleResolution": "node", 7 | "target": "es2017", 8 | "lib": ["es6", "es7", "dom"], 9 | "sourceMap": false, 10 | "allowJs": true, 11 | "allowSyntheticDefaultImports": true 12 | }, 13 | "exclude": ["node_modules", "dist", "scripts"], 14 | "types": ["typePatches", "node"] 15 | } 16 | -------------------------------------------------------------------------------- /dd-docsify-x/tools/src/api-documenter/index.ts: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. 2 | // See LICENSE in the project root for license information. 3 | 4 | import { ApiDocumenterCommandLine } from './cli/ApiDocumenterCommandLine'; 5 | 6 | const parser: ApiDocumenterCommandLine = new ApiDocumenterCommandLine(); 7 | 8 | parser.execute().catch(console.error); // CommandLineParser.execute() should never reject the promise 9 | -------------------------------------------------------------------------------- /dd-alfred/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const alfy = require('alfy'); 3 | const { searchDoc, searchLink } = require('./lib/search.js'); 4 | 5 | const matcher = (input = 'REST') => { 6 | const tokens = input 7 | .trim() 8 | .toLowerCase() 9 | .split(' '); 10 | 11 | const isLink = tokens[0] === 'link'; 12 | 13 | (isLink ? searchLink(tokens.join(' ')) : searchDoc(tokens.join(' '))).then( 14 | res => { 15 | alfy.output(res); 16 | } 17 | ); 18 | }; 19 | 20 | matcher(alfy.input); 21 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/.storybook/preview.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import theme from 'theme' 3 | import GlobalStyle from 'GlobalStyle' 4 | 5 | import { ThemeProvider } from 'styled-components' 6 | 7 | export const decorators = [ 8 | (Story) => ( 9 | 10 | 11 | 12 | 13 | ), 14 | ] 15 | 16 | export const parameters = { 17 | actions: { argTypesRegex: '^on[A-Z].*' }, 18 | } 19 | -------------------------------------------------------------------------------- /dd-coding-helper/vscode-extension/.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | // See https://go.microsoft.com/fwlink/?LinkId=733558 2 | // for the documentation about the tasks.json format 3 | { 4 | "version": "2.0.0", 5 | "tasks": [ 6 | { 7 | "type": "npm", 8 | "script": "watch", 9 | "problemMatcher": "$tsc-watch", 10 | "isBackground": true, 11 | "presentation": { 12 | "reveal": "never" 13 | }, 14 | "group": { 15 | "kind": "build", 16 | "isDefault": true 17 | } 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/src/renderer/app/error-message.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { connect } from 'react-redux' 3 | import styled from 'styled-components' 4 | 5 | const mapStateToProps = ({ error }) => ({ error }) 6 | 7 | export default connect(mapStateToProps)(props => { 8 | if (props.error) return {'Sorry I can\'t translate!'} 9 | else return null 10 | }) 11 | 12 | const Message = styled.div` 13 | padding: 18px; 14 | color: palevioletred; 15 | ` -------------------------------------------------------------------------------- /picgo-plugin-ngte-migrater/test.js: -------------------------------------------------------------------------------- 1 | const { PicGo } = require("picgo"); 2 | const PluginMigrater = require("./dist/index"); 3 | 4 | const picgo = new PicGo(); 5 | 6 | picgo.setConfig({ 7 | "picgo-plugin-ngte-migrater": { 8 | newFileSuffix: "_new", 9 | include: "", 10 | exclude: "", 11 | }, 12 | }); 13 | 14 | const plugin = PluginMigrater(picgo); 15 | 16 | (async () => { 17 | const res = await plugin.migrateFiles(["./test/test.md"]); // { total: number, success: number } 18 | console.log(res); 19 | })(); 20 | -------------------------------------------------------------------------------- /dd-coding-helper/vscode-extension/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | // Place your settings in this file to overwrite default and user settings. 2 | { 3 | "files.exclude": { 4 | "out": false // set this to true to hide the "out" folder with the compiled JS files 5 | }, 6 | "search.exclude": { 7 | "out": true // set this to false to include "out" folder in search results 8 | }, 9 | // Turn off tsc task auto detection since we have the necessary tasks as npm scripts 10 | "typescript.tsc.autoDetect": "off" 11 | } -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/version-script.js: -------------------------------------------------------------------------------- 1 | /* 2 | * The following script changes the version of the mini-dashboard 3 | * in the file `src/version.js 4 | */ 5 | 6 | const fs = require('fs') 7 | 8 | // Fetch the current version in the package.json 9 | const { version } = require('./package.json') 10 | 11 | // Creates content of the version.js file 12 | const versionFile = `export default '${version}'\n` 13 | // Write the content inside ./src/version.js 14 | fs.writeFileSync('./src/version/version.js', versionFile) 15 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/cypress.config.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line import/no-extraneous-dependencies 2 | const { defineConfig } = require('cypress') 3 | 4 | module.exports = defineConfig({ 5 | viewportWidth: 1440, 6 | viewportHeight: 900, 7 | env: { 8 | host: 'http://0.0.0.0:7700', 9 | apiKey: 'masterKey', 10 | wrongApiKey: 'wrongApiKey', 11 | waitingTime: 1000, 12 | }, 13 | e2e: { 14 | baseUrl: 'http://localhost:3000', 15 | specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}', 16 | }, 17 | }) 18 | -------------------------------------------------------------------------------- /dd-search-engine/sg-index-image/README.md: -------------------------------------------------------------------------------- 1 | # favorite-imgs-search 2 | 3 | 笔者有很多的图片,需要进行归档、搜索、外链分享。 4 | 5 | # About 6 | 7 | ## Motivation & Credits 8 | 9 | - [photoprism #Project#](https://github.com/photoprism/photoprism): PhotoPrism is a server-based application for browsing, organizing and sharing your personal photo collection. It makes use of the latest technologies to automatically tag and find pictures without getting in your way. Say goodbye to solutions that force you to upload your visual memories to the cloud or pay monthly fees. 10 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/Badge.js: -------------------------------------------------------------------------------- 1 | import styled from 'styled-components' 2 | 3 | const Badge = styled.span` 4 | background-color: ${(p) => p.theme.colors.main.lighter}; 5 | color: ${(p) => p.theme.colors.main.dark}; 6 | height: 16px; 7 | border-radius: 5px; 8 | padding: 0 4px; 9 | display: inline-flex; 10 | align-items: center; 11 | justify-content: center; 12 | font-size: 12px; 13 | line-height: 22px; 14 | font-weight: 400; 15 | letter-spacing: 0.03em; 16 | ` 17 | 18 | export default Badge 19 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/Container.js: -------------------------------------------------------------------------------- 1 | import PropTypes from 'prop-types' 2 | import styled from 'styled-components' 3 | import Box from 'components/Box' 4 | 5 | const Container = styled(Box)` 6 | max-width: ${(p) => p.theme.breakpoints.large}px; 7 | width: 100%; 8 | margin: auto; 9 | ` 10 | 11 | Container.propTypes = { 12 | /** 13 | * Container contents 14 | */ 15 | children: PropTypes.node, 16 | } 17 | 18 | Container.defaultProps = { 19 | children: null, 20 | } 21 | 22 | export default Container 23 | -------------------------------------------------------------------------------- /dd-search-engine/sg-index-doc/src/service/toc/generateTocFromLocal.ts: -------------------------------------------------------------------------------- 1 | import { generateFileTree, generateTocFromFileTree } from '../../util/fs/file'; 2 | 3 | import { default as repos, ReposityConfig } from '../../config/repo-config'; 4 | 5 | export async function generateToc(repoName = 'Awesome-Lists') { 6 | // 获取仓库的配置信息 7 | const repo: ReposityConfig = repos[repoName]; 8 | 9 | let fileTree = await generateFileTree(repo.localPath); 10 | 11 | let toc; 12 | 13 | toc = generateTocFromFileTree(fileTree, 0); 14 | 15 | return toc; 16 | } 17 | -------------------------------------------------------------------------------- /dd-coding-helper/vscode-extension/src/test/suite/extension.test.ts: -------------------------------------------------------------------------------- 1 | import * as assert from 'assert'; 2 | 3 | // You can import and use all API from the 'vscode' module 4 | // as well as import your extension to test it 5 | import * as vscode from 'vscode'; 6 | // import * as myExtension from '../extension'; 7 | 8 | suite('Extension Test Suite', () => { 9 | vscode.window.showInformationMessage('Start all tests.'); 10 | 11 | test('Sample test', () => { 12 | assert.equal(-1, [1, 2, 3].indexOf(5)); 13 | assert.equal(-1, [1, 2, 3].indexOf(0)); 14 | }); 15 | }); 16 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/stories/Input.stories.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | import Input from 'components/Input' 4 | import { SearchMedium } from 'components/icons' 5 | 6 | export default { 7 | title: 'Components/Input', 8 | component: Input, 9 | } 10 | 11 | const Template = (args) => ( 12 | 13 | ) 14 | 15 | export const Default = Template.bind({}) 16 | 17 | export const WithIcon = Template.bind({}) 18 | WithIcon.args = { 19 | icon: , 20 | } 21 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | 25 | # meilisearch 26 | /data.ms 27 | meilisearch 28 | 29 | # Cypress 30 | cypress/screenshots 31 | cypress/videos 32 | cypress/plugins 33 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/stories/Stats.stories.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | import Stats from 'components/Stats' 4 | 5 | export default { 6 | title: 'Components/Stats', 7 | component: Stats, 8 | } 9 | 10 | const Template = (args) => 11 | 12 | export const Default = Template.bind({}) 13 | Default.args = { 14 | nbHits: 19546, 15 | processingTimeMS: 2, 16 | nbResults: 19546, 17 | } 18 | 19 | export const Imprecise = Template.bind({}) 20 | Imprecise.args = { 21 | nbHits: 19546, 22 | processingTimeMS: 2, 23 | nbResults: 19500, 24 | } 25 | -------------------------------------------------------------------------------- /dd-search-engine/sg-index-doc/src/cli/generate-toc.ts: -------------------------------------------------------------------------------- 1 | const os = require("os"); 2 | const program = require("commander"); 3 | const fs = require("fs-extra"); 4 | 5 | program 6 | .version("0.0.1") 7 | .option( 8 | "-d, --directory [directory]", 9 | "工作目录,默认为当前目录", 10 | os.homedir() + "/Desktop" 11 | ); 12 | 13 | program.parse(process.argv); 14 | 15 | const targetDir = "/Users/zhangzixiong/Desktop/Docs/Web-Series"; 16 | 17 | const skippedDirs = [".github", ".meta"]; 18 | 19 | (async () => { 20 | const files = await fs.lstat(targetDir); 21 | console.log(files); 22 | })(); 23 | -------------------------------------------------------------------------------- /dd-search-engine/sg-index-doc/src/util/fs/interface.ts: -------------------------------------------------------------------------------- 1 | // 文件描述符 2 | export interface FileDescriptor { 3 | // 相对路径 4 | path: string; 5 | 6 | // 文件名 7 | name: string; 8 | uniqueName?: string; 9 | 10 | // 文件内容 11 | content?: string; 12 | 13 | // 经过 base64 解码之后的内容 14 | rawContent?: string; 15 | 16 | // 文件链接 17 | html_url?: string; 18 | 19 | // 文件内的一级目录 20 | h1s?: Array; 21 | } 22 | 23 | // 文件树 24 | export interface FileTree { 25 | // 当前的文件目录 26 | path: string; 27 | dirs: { 28 | [key: string]: FileTree; 29 | }; 30 | files: Array; 31 | } 32 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/Box.js: -------------------------------------------------------------------------------- 1 | import styled from 'styled-components' 2 | import { space, layout, color, compose, flexbox, position } from 'styled-system' 3 | import { props as stprops } from '@styled-system/should-forward-prop' 4 | 5 | const regex = new RegExp(`^(${stprops.join('|')})$`) 6 | 7 | const shouldForwardProp = (prop) => !regex.test(prop) 8 | 9 | const Box = styled('div').withConfig({ shouldForwardProp })` 10 | box-sizing: border-box; 11 | min-width: 0; 12 | 13 | && { 14 | ${compose(space, layout, color, flexbox, position)} 15 | } 16 | ` 17 | export default Box 18 | -------------------------------------------------------------------------------- /picgo-plugin-ngte-migrater/dist/lib/FileHandler.d.ts: -------------------------------------------------------------------------------- 1 | import { PicGo } from 'picgo'; 2 | declare class FileHandler { 3 | ctx: PicGo; 4 | fileList: IFileList; 5 | urlList: IURLList; 6 | constructor(ctx: PicGo); 7 | read(file: string): void; 8 | getUrlListFromFileContent(file: string): void; 9 | write(file: string, data: string, newSuffix?: string, oldContentWriteToNewFile?: boolean): void; 10 | getFileList(): IFileList; 11 | getUrlList(): IURLList; 12 | getFileUrlList(file: string): IStringKeyMap; 13 | getFileContent(file: string): string; 14 | } 15 | export default FileHandler; 16 | -------------------------------------------------------------------------------- /dd-docsify-x/tools/vendor/_docsify/setup-mermaid.js: -------------------------------------------------------------------------------- 1 | // Set up mermaid renderer 2 | 3 | (function() { 4 | var num = 0; 5 | mermaid.initialize({ startOnLoad: false }); 6 | 7 | if (!window.$docsify.markdown) window.$docsify.markdown = {}; 8 | if (!window.$docsify.markdown.renderer) window.$docsify.markdown.renderer = {}; 9 | 10 | window.$docsify.markdown.renderer.code = function(code, lang) { 11 | if (lang === 'mermaid') { 12 | return '
' + mermaid.render('mermaid-svg-' + num++, code) + '
'; 13 | } 14 | return this.origin.code.apply(this, arguments); 15 | }; 16 | })(); 17 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/icons/ArrowDown.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | const SvgArrowDown = ({ title, titleId, ...props }) => ( 3 | 10 | {title ? {title} : null} 11 | 18 | 19 | ) 20 | export default SvgArrowDown 21 | -------------------------------------------------------------------------------- /dd-translator-for-coder/vscode-sg-translate/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": false, 4 | "commonjs": true, 5 | "es6": true, 6 | "node": true 7 | }, 8 | "parserOptions": { 9 | "ecmaFeatures": { 10 | "jsx": true 11 | }, 12 | "sourceType": "module" 13 | }, 14 | "rules": { 15 | "no-const-assign": "warn", 16 | "no-this-before-super": "warn", 17 | "no-undef": "warn", 18 | "no-unreachable": "warn", 19 | "no-unused-vars": "warn", 20 | "constructor-super": "warn", 21 | "valid-typeof": "warn" 22 | } 23 | } -------------------------------------------------------------------------------- /dd-translator-for-coder/vscode-sg-translate/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | ## 1.1.5 4 | - Fix translation issue (#2) 5 | 6 | ## 1.1.4 7 | - Change key biding to ALT+SHIFT+T to make it work with most of people 8 | - Update readme 9 | 10 | ## 1.1.3 11 | - Change key biding to CTRL+SHIFT+T or CMD+SHIFT+T 12 | 13 | ## 1.1.2 14 | - Code improvements 15 | - Better demo gif 16 | 17 | ## 1.1.1 18 | - Add recently used languages 19 | 20 | ## 1.1.0 21 | - Multiselect support 22 | - Update readme 23 | - MIT License 24 | - Gif example 25 | - Badges 26 | - Logo 27 | 28 | ## 1.0.2 29 | - Minor improvements 30 | 31 | ## 1.0.1 32 | - Minor improvements 33 | 34 | ## 1.0.0 35 | - Initial release -------------------------------------------------------------------------------- /dd-alfred/README.md: -------------------------------------------------------------------------------- 1 | # alfred-sg 2 | 3 | alfred-sg is part of [Soogle](https://github.com/wxyyxc1992/xCompass/tree/master/soogle). 4 | 5 | ## Install 6 | 7 | ```sh 8 | $ npm install -g alfred-sg 9 | # or 10 | $ yarn global add alfred-sg 11 | ``` 12 | 13 | ## Usage 14 | 15 | - Search in Doc 16 | 17 | ![image](https://user-images.githubusercontent.com/5803001/50546216-fd70d480-0c5e-11e9-9b6b-cceaf7860c58.png) 18 | 19 | - Search in links([Awesome-Links](https://github.com/wxyyxc1992/Awesome-Links)) 20 | 21 | ![image](https://user-images.githubusercontent.com/5803001/50546165-352b4c80-0c5e-11e9-9f16-fb2a115a3506.png) 22 | 23 | # About 24 | 25 | ## WIP 26 | 27 | - [ ] Add local cache 28 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/stories/Container.stories.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import Container from 'components/Container' 3 | 4 | export default { 5 | title: 'Components/Container', 6 | component: Container, 7 | decorators: [ 8 | (Story) => ( 9 |
10 | 11 |
12 | ), 13 | ], 14 | } 15 | 16 | const Template = (args) => 17 | 18 | export const Default = Template.bind({}) 19 | Default.args = { 20 | children: ( 21 |
22 | I’m a Container with a max-width 23 |
24 | ), 25 | } 26 | -------------------------------------------------------------------------------- /dd-search-engine/sg-index-doc/README.md: -------------------------------------------------------------------------------- 1 | # sg-index-doc | 文档工具 2 | 3 | - 索引构建 4 | 5 | ```sh 6 | # 建立文章索引 7 | $ npm run ts ./src/cli/build-index.ts doc 8 | 9 | # 建立链接索引 10 | $ npm run ts ./src/cli/build-index.ts link 11 | ``` 12 | 13 | - 目录构建 14 | 15 | ```sh 16 | # 为本地的某个仓库生成目录文件 17 | $ npm run ts ./src/cli/generate-gitbook.ts 18 | 19 | # 为所有的仓库生成 GitBook Summary 20 | $ npm run ts ./src/cli/generate-summary.ts 21 | ``` 22 | 23 | - 文章同步 24 | 25 | ```sh 26 | # 同步 Wiz 中的文章 27 | $ npm run ts ./src/cli/sync-wiz.ts 28 | ``` 29 | 30 | ```sh 31 | # 同步到 hugo 32 | $ npm run ts ./src/cli/sync-hugo.ts 33 | ``` 34 | 35 | - 数据统计 36 | 37 | ```sh 38 | # 建立文章索引 39 | $ npm run ts ./src/cli/stats stats 40 | ``` 41 | -------------------------------------------------------------------------------- /picgo-plugin-ngte-migrater/dist/lib/Migrater.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import { IImgInfo, PicGo } from 'picgo'; 3 | declare class Migrater { 4 | ctx: PicGo; 5 | guiApi: any; 6 | urlArray: string[]; 7 | baseDir: string; 8 | constructor(ctx: PicGo, guiApi: any, filePath: string); 9 | init(urlList: IStringKeyMap): void; 10 | migrate(): Promise; 11 | getLocalPath(imgPath: string): string | false; 12 | getPicFromURL(url: string): Promise; 13 | handlePicFromLocal(picPath: string, origin: string): Promise; 14 | handlePicFromURL(url: string): Promise; 15 | } 16 | export default Migrater; 17 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/stories/Toggle.stories.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | import Toggle from 'components/Toggle' 4 | import { DocumentBig, Picture } from 'components/icons' 5 | 6 | export default { 7 | title: 'Components/Toggle', 8 | component: Toggle, 9 | } 10 | 11 | const Template = (args) => 12 | 13 | export const Default = Template.bind({}) 14 | Default.args = { 15 | onLabel: ( 16 | <> 17 | 18 | Fancy 19 | 20 | ), 21 | offLabel: ( 22 | <> 23 | 24 | Json 25 | 26 | ), 27 | onChange: () => {}, 28 | } 29 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/stories/Modal.stories.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { useDialogState, DialogDisclosure } from 'reakit/Dialog' 3 | 4 | import Modal from 'components/Modal' 5 | 6 | export default { 7 | title: 'Components/Modal', 8 | component: Modal, 9 | } 10 | 11 | const Template = (args) => { 12 | const dialog = useDialogState({ animated: true }) 13 | return ( 14 | <> 15 | Click me 16 | 17 | 18 | ) 19 | } 20 | 21 | export const Default = Template.bind({}) 22 | Default.args = { 23 | title: 'I’m a title', 24 | children:
I’m the Modal’s content
, 25 | } 26 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/cypress/fixtures/pokemon.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": 1, 4 | "name": "Bulbasaur", 5 | "type": ["Grass", "Poison"], 6 | "sprite": "https://raw.githubusercontent.com/Purukitto/pokemon-data.json/master/images/pokedex/sprites/001.png" 7 | }, 8 | { 9 | "id": 2, 10 | "name": "Ivysaur", 11 | "type": ["Grass", "Poison"], 12 | "sprite": "https://raw.githubusercontent.com/Purukitto/pokemon-data.json/master/images/pokedex/sprites/002.png" 13 | }, 14 | { 15 | "id": 3, 16 | "name": "Venusaur", 17 | "type": ["Grass", "Poison"], 18 | "sprite": "https://raw.githubusercontent.com/Purukitto/pokemon-data.json/master/images/pokedex/sprites/003.png" 19 | } 20 | ] 21 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/Card.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import styled from 'styled-components' 3 | import PropTypes from 'prop-types' 4 | 5 | const Wrapper = styled.li` 6 | background-color: white; 7 | list-style-type: none; 8 | box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.05); 9 | border-radius: 20px; 10 | padding: ${(p) => p.theme.space[4]}px; 11 | ` 12 | 13 | const Card = ({ children, ...props }) => ( 14 | {children} 15 | ) 16 | 17 | Card.propTypes = { 18 | /** 19 | * The content to appear inside the Card 20 | */ 21 | children: PropTypes.node, 22 | } 23 | 24 | Card.defaultProps = { 25 | children: null, 26 | } 27 | 28 | export default Card 29 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug Report 🐞 3 | about: Create a report to help us improve. 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | --- 8 | 9 | 10 | 11 | **Description** 12 | Description of what the bug is about. 13 | 14 | **Expected behavior** 15 | What you expected to happen. 16 | 17 | **Current behavior** 18 | What happened. 19 | 20 | **Screenshots or Logs** 21 | If applicable, add screenshots or logs to help explain your problem. 22 | 23 | **Environment (please complete the following information):** 24 | - Meilisearch version: [e.g. v.0.24.0] 25 | - Browser: [e.g. Chrome version 90.0] 26 | -------------------------------------------------------------------------------- /dd-coding-helper/vscode-extension/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es6", 5 | "outDir": "out", 6 | "lib": [ 7 | "es6" 8 | ], 9 | "sourceMap": true, 10 | "rootDir": "../../", 11 | "resolveJsonModule": true, 12 | "strict": true, /* enable all strict type-checking options */ 13 | /* Additional Checks */ 14 | "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ 15 | "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ 16 | "noUnusedParameters": true, /* Report errors on unused parameters. */ 17 | }, 18 | "exclude": [ 19 | "node_modules", 20 | ".vscode-test" 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/stories/EmptyView.stories.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import EmptyView from 'components/EmptyView' 3 | import Typography from 'components/Typography' 4 | 5 | export default { 6 | title: 'Components/EmptyView', 7 | component: EmptyView, 8 | } 9 | 10 | const Template = (args) => 11 | 12 | export const Default = Template.bind({}) 13 | Default.args = { 14 | children: ( 15 | 21 | There’s no document in the selected index 22 | 23 | ), 24 | buttonLink: 'https://docs.meilisearch.com/reference/api/documents.html', 25 | } 26 | -------------------------------------------------------------------------------- /dd-docsify-x/tools/src/api-documenter/utils/Utilities.ts: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. 2 | // See LICENSE in the project root for license information. 3 | 4 | import { 5 | ApiParameterListMixin, 6 | ApiItem 7 | } from '@microsoft/api-extractor-model'; 8 | 9 | export class Utilities { 10 | /** 11 | * Generates a concise signature for a function. Example: "getArea(width, height)" 12 | */ 13 | public static getConciseSignature(apiItem: ApiItem): string { 14 | if (ApiParameterListMixin.isBaseClassOf(apiItem)) { 15 | return apiItem.displayName + '(' + apiItem.parameters.map(x => x.name).join(', ') + ')'; 16 | } 17 | return apiItem.displayName; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /dd-coding-helper/vscode-extension/src/utils/convertToMilliseconds.ts: -------------------------------------------------------------------------------- 1 | const convertToMilliseconds = (hours?: number, minutes?: number) => { 2 | let milliseconds: number = 0; 3 | 4 | const convertMinutesToMilliseconds = (minutes: number) => { 5 | let seconds = minutes * 60; 6 | 7 | return seconds * 1000; 8 | }; 9 | const convertHoursToMinutesToMilliseconds = (hour: number) => convertMinutesToMilliseconds(hour * 60); 10 | 11 | if (hours) { 12 | milliseconds += convertHoursToMinutesToMilliseconds(hours); 13 | } 14 | 15 | if (minutes) { 16 | milliseconds += convertMinutesToMilliseconds(minutes); 17 | } 18 | 19 | return milliseconds; 20 | }; 21 | 22 | export default convertToMilliseconds; 23 | -------------------------------------------------------------------------------- /dd-search-engine/sg-index-doc/src/service/wiz/automation.ts: -------------------------------------------------------------------------------- 1 | import { WIZ_PASSWORD, WIZ_USERNAME } from '../../config/private'; 2 | 3 | export const login = async (browser: any) => { 4 | // DOM 元素选择器 5 | const USERNAME_SELECTOR = '#login-wizID'; 6 | const PASSWORD_SELECTOR = '#login-password'; 7 | const BUTTON_SELECTOR = '#loginbtn'; 8 | 9 | const page = await browser.newPage(); 10 | 11 | // 等待打开登录界面执行登陆操作 12 | await page.goto('https://note.wiz.cn/login?p=login'); 13 | 14 | await page.click(USERNAME_SELECTOR); 15 | await page.type(WIZ_USERNAME); 16 | 17 | await page.click(PASSWORD_SELECTOR); 18 | await page.type(WIZ_PASSWORD); 19 | 20 | await page.click(BUTTON_SELECTOR); 21 | 22 | await page.waitForNavigation(); 23 | 24 | return page; 25 | }; 26 | -------------------------------------------------------------------------------- /dd-coding-helper/vscode-extension/src/test/runTest.ts: -------------------------------------------------------------------------------- 1 | import * as path from 'path'; 2 | 3 | import { runTests } from 'vscode-test'; 4 | 5 | async function main() { 6 | try { 7 | // The folder containing the Extension Manifest package.json 8 | // Passed to `--extensionDevelopmentPath` 9 | const extensionDevelopmentPath = path.resolve(__dirname, '../../'); 10 | 11 | // The path to test runner 12 | // Passed to --extensionTestsPath 13 | const extensionTestsPath = path.resolve(__dirname, './suite/index'); 14 | 15 | // Download VS Code, unzip it and run the integration test 16 | await runTests({ extensionDevelopmentPath, extensionTestsPath }); 17 | } catch (err) { 18 | console.error('Failed to run tests'); 19 | process.exit(1); 20 | } 21 | } 22 | 23 | main(); 24 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/Results/NoResultForRequest.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import EmptyView from 'components/EmptyView' 3 | import Typography from 'components/Typography' 4 | 5 | const NoResultForRequest = () => ( 6 | 7 | 13 | Sorry mate, no results matching your request 14 | 15 | 16 | 17 | ☹️ 18 | 19 | 20 | 21 | ) 22 | 23 | export default NoResultForRequest 24 | -------------------------------------------------------------------------------- /dd-search-engine/sg-index-doc/src/cli/build-index.ts: -------------------------------------------------------------------------------- 1 | import * as algoliasearch from 'algoliasearch'; 2 | const program = require('commander'); 3 | 4 | import { ALGOLIA_ADMIN_API_KEY } from './../config/private'; 5 | import { buildDocIndex } from '../service/index/buildDocIndex'; 6 | import { buildLinkIndex } from '../service/index/buildLinkIndex'; 7 | 8 | const client = algoliasearch('35UOMI84K6', ALGOLIA_ADMIN_API_KEY); 9 | 10 | program 11 | .command('doc') 12 | .description('index docs from several repos') 13 | .action(async function() { 14 | await buildDocIndex(client); 15 | }); 16 | 17 | program 18 | .command('link') 19 | .description('index links from Awesome Links') 20 | .action(async function() { 21 | await buildLinkIndex(client); 22 | }); 23 | 24 | program.parse(process.argv); 25 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/src/renderer/app/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Transee 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /dd-docsify-x/tools/src/api-documenter/utils/test/__snapshots__/IndentedWriter.test.ts.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`01 Demo from docs 1`] = ` 4 | "begin 5 | one 6 | two 7 | end" 8 | `; 9 | 10 | exports[`02 Indent something 1`] = ` 11 | "abc 12 | d 13 | e 14 | >>> 15 | >>> 16 | >>> g 17 | " 18 | `; 19 | 20 | exports[`03 Two kinds of indents 1`] = ` 21 | "--- 22 | > a 23 | > bc 24 | > d 25 | > e 26 | --- 27 | " 28 | `; 29 | 30 | exports[`04 Edge cases for ensureNewLine() 1`] = `"line"`; 31 | 32 | exports[`04 Edge cases for ensureNewLine() 2`] = ` 33 | "previous 34 | line" 35 | `; 36 | 37 | exports[`04 Edge cases for ensureSkippedLine() 1`] = ` 38 | " 39 | line" 40 | `; 41 | 42 | exports[`04 Edge cases for ensureSkippedLine() 2`] = ` 43 | "previous 44 | 45 | line" 46 | `; 47 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/icons/Cross.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | const SvgCross = ({ title, titleId, ...props }) => ( 3 | 10 | {title ? {title} : null} 11 | 18 | 25 | 26 | ) 27 | export default SvgCross 28 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/src/renderer/welcome/welcome.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Welcome Guide 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/src/renderer/preferences/preferences.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Preferences 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/icons/svg/search_medium.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /picgo-plugin-ngte-migrater/dist/i18n/zh-CN.d.ts: -------------------------------------------------------------------------------- 1 | export declare const zh: { 2 | PIC_MIGRATER_CHOOSE_FILE: string; 3 | PIC_MIGRATER_CHOOSE_FOLDER: string; 4 | PIC_MIGRATER_PROCESSING: string; 5 | PIC_MIGRATER_BE_PATIENT: string; 6 | PIC_MIGRATER_SUCCESS: string; 7 | PIC_MIGRATER_FAIL: string; 8 | PIC_MIGRATER_FAIL_TIP: string; 9 | PIC_MIGRATER_SUCCESS_TIP: string; 10 | PIC_MIGRATER_CONFIG_TIP_TITLE: string; 11 | PIC_MIGRATER_CONFIG_TIP_BODY: string; 12 | PIC_MIGRATER_CONFIG_NEW_FILE_SUFFIX: string; 13 | PIC_MIGRATER_CONFIG_INCLUDE: string; 14 | PIC_MIGRATER_CONFIG_EXCLUDE: string; 15 | PIC_MIGRATER_CONFIG_OLD_CONTENT_WRITE_TO_NEW_FILE: string; 16 | PIC_MIGRATER_CONFIG_TIPS: string; 17 | }; 18 | export declare type ILocales = typeof zh; 19 | export declare type ILocalesKey = keyof typeof zh; 20 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/Results/Highlight.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { connectHighlight } from 'react-instantsearch-dom' 3 | import Typography from 'components/Typography' 4 | 5 | const Highlight = connectHighlight( 6 | ({ highlight, attribute, hit, indexContextValue, ...props }) => { 7 | const parsedHit = highlight({ 8 | highlightProperty: '_highlightResult', 9 | attribute, 10 | hit, 11 | }) 12 | 13 | return ( 14 | 15 | {parsedHit.map((part, index) => 16 | part.isHighlighted ? ( 17 | {part.value} 18 | ) : ( 19 | {part.value} 20 | ) 21 | )} 22 | 23 | ) 24 | } 25 | ) 26 | 27 | export default Highlight 28 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/stories/Checkbox.stories.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | import Badge from 'components/Badge' 4 | import Checkbox from 'components/Checkbox' 5 | import Typography from 'components/Typography' 6 | 7 | export default { 8 | title: 'Components/Checkbox', 9 | component: Checkbox, 10 | } 11 | 12 | const Template = (args) => { 13 | const [checked, setChecked] = React.useState(false) 14 | return ( 15 | setChecked(!checked)} 18 | {...args} 19 | /> 20 | ) 21 | } 22 | 23 | export const Default = Template.bind({}) 24 | Default.args = { 25 | children: ( 26 | <> 27 | 28 | Carrot cake 29 | 30 | 12349 31 | 32 | ), 33 | } 34 | -------------------------------------------------------------------------------- /picgo-plugin-ngte-migrater/.github/workflows/manually.yml: -------------------------------------------------------------------------------- 1 | name: manually-trigger 2 | on: workflow_dispatch 3 | jobs: 4 | build: 5 | runs-on: ubuntu-latest 6 | strategy: 7 | matrix: 8 | node-version: [16] 9 | steps: 10 | - uses: actions/checkout@v2 11 | - uses: pnpm/action-setup@v2.0.1 12 | with: 13 | version: 7.9.4 14 | - name: Use Node.js ${{ matrix.node-version }} 15 | uses: actions/setup-node@v2 16 | with: 17 | node-version: ${{ matrix.node-version }} 18 | cache: 'pnpm' 19 | registry-url: 'https://registry.npmjs.org' 20 | - name: Install modules 21 | run: | 22 | pnpm install 23 | pnpm run build 24 | - run: npm publish --access public 25 | env: 26 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/icons/svg/search_small.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /picgo-plugin-ngte-migrater/.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: publish 2 | on: 3 | push: 4 | branches: 5 | - master 6 | jobs: 7 | build: 8 | runs-on: ubuntu-latest 9 | strategy: 10 | matrix: 11 | node-version: [16] 12 | steps: 13 | - uses: actions/checkout@v2 14 | - uses: pnpm/action-setup@v2.0.1 15 | with: 16 | version: 7.9.4 17 | - name: Use Node.js ${{ matrix.node-version }} 18 | uses: actions/setup-node@v2 19 | with: 20 | node-version: ${{ matrix.node-version }} 21 | cache: 'pnpm' 22 | registry-url: 'https://registry.npmjs.org' 23 | - name: Install modules 24 | run: | 25 | pnpm install 26 | pnpm run build 27 | - run: npm publish --access public 28 | env: 29 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} -------------------------------------------------------------------------------- /dd-docsify-x/tools/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@m-fe/tsconfig/tsconfig.json", 3 | "include": ["**/*.ts", "**/*.tsx"], 4 | "exclude": ["node_modules","jest-diff"], 5 | "compilerOptions": { 6 | "incremental": true, 7 | "target": "ES2016" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ , 8 | "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ , 9 | "outDir": "build" /* Redirect output structure to the directory. */ , 10 | "strict": false /* Enable all strict type-checking options. */ , 11 | "esModuleInterop": true, 12 | /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ 13 | "skipLibCheck": true 14 | } 15 | } -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/stories/IconButton.stories.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | import IconButton from 'components/IconButton' 4 | import { Cross, InterrogationMark } from 'components/icons' 5 | 6 | export default { 7 | title: 'Components/IconButton', 8 | component: IconButton, 9 | argTypes: { 10 | variant: { 11 | control: { 12 | type: 'select', 13 | options: ['default', 'bordered'], 14 | }, 15 | }, 16 | }, 17 | } 18 | 19 | const Template = (args) => 20 | 21 | export const Default = Template.bind({}) 22 | Default.args = { 23 | children: , 24 | } 25 | 26 | export const Bordered = Template.bind({}) 27 | Bordered.args = { 28 | style: { width: 24, height: 24 }, 29 | variant: 'bordered', 30 | children: , 31 | } 32 | -------------------------------------------------------------------------------- /picgo-plugin-ngte-migrater/dist/i18n/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.T = exports.initI18n = void 0; 4 | const zh_CN_1 = require("./zh-CN"); 5 | const en_1 = require("./en"); 6 | const initI18n = (ctx) => { 7 | var _a; 8 | // init i18n 9 | if ((_a = ctx === null || ctx === void 0 ? void 0 : ctx.i18n) === null || _a === void 0 ? void 0 : _a.addLocale) { 10 | ctx.i18n.addLocale('zh-CN', zh_CN_1.zh); 11 | ctx.i18n.addLocale('en', en_1.en); 12 | } 13 | }; 14 | exports.initI18n = initI18n; 15 | const T = (ctx) => (key, args = {}) => { 16 | var _a; 17 | if ((_a = ctx === null || ctx === void 0 ? void 0 : ctx.i18n) === null || _a === void 0 ? void 0 : _a.translate) { 18 | return ctx.i18n.translate(key, args) || zh_CN_1.zh[key]; 19 | } 20 | return zh_CN_1.zh[key]; 21 | }; 22 | exports.T = T; 23 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/src/renderer/app/entry.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { render } from 'react-dom' 3 | import App from './app' 4 | import { Provider } from 'react-redux' 5 | import store from './store' 6 | import sagas from './sagas' 7 | import { createGlobalStyle } from 'styled-components' 8 | import './css/app.css' 9 | 10 | const GlobalStyle = createGlobalStyle` 11 | * { 12 | font-family: 'Nunito', sans-serif; 13 | font-weight: 300; 14 | } 15 | 16 | *::-webkit-scrollbar { 17 | display: ${window.navigator.platform === 'MacIntel' ? '' : 'none'} 18 | } 19 | ` 20 | 21 | store.runSaga(sagas) 22 | 23 | const Transee = () => ( 24 | 25 | 26 | 27 | 28 | ) 29 | 30 | render( 31 | , 32 | document.getElementById('root') 33 | ) 34 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/hooks/useLocalStorage.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable no-console */ 2 | import { useState } from 'react' 3 | 4 | function useLocalStorage(key, initialValue) { 5 | const [storedValue, setStoredValue] = useState(() => { 6 | try { 7 | const item = window.localStorage.getItem(key) 8 | return item ? JSON.parse(item) : initialValue 9 | } catch (error) { 10 | console.log(error) 11 | return initialValue 12 | } 13 | }) 14 | 15 | const setValue = (value) => { 16 | try { 17 | const valueToStore = 18 | value instanceof Function ? value(storedValue) : value 19 | setStoredValue(valueToStore) 20 | window.localStorage.setItem(key, JSON.stringify(valueToStore)) 21 | } catch (error) { 22 | console.log(error) 23 | } 24 | } 25 | 26 | return [storedValue, setValue] 27 | } 28 | 29 | export default useLocalStorage 30 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/src/renderer/svg/microphone.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import styled from 'styled-components' 3 | 4 | export const Microphone = () => ( 5 | 11 | 12 | 15 | 16 | 17 | ) 18 | 19 | const Svg = styled.svg` 20 | path { 21 | fill: #444 22 | } 23 | &:hover path { 24 | fill: #999 25 | } 26 | &:active path { 27 | fill: #eee 28 | } 29 | ` 30 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/.github/scripts/check-release.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Checking if current tag matches the package version 4 | current_tag=$(echo $GITHUB_REF | tr -d 'refs/tags/v') 5 | file_tag=$(grep '"version":' package.json | cut -d ':' -f 2- | tr -d ' ' | tr -d '"' | tr -d ',') 6 | 7 | package_file_tag=$(grep '"version":' package.json | cut -d ':' -f 2- | tr -d ' ' | tr -d '"' | tr -d ',') 8 | package_file_name='package.json' 9 | version_file_tag=$(grep "export default" src/version/version.js | cut -d " " -f 3- | tr -d " " | tr -d "'") 10 | version_file_name='src/version/version.js' 11 | 12 | if [ "$current_tag" != "$file_tag" ]; then 13 | echo "Error: the current tag does not match the version in package file(s)." 14 | echo "$package_file_name: $current_tag vs $package_file_tag" 15 | echo "$version_file_name: $current_tag vs $version_file_tag" 16 | exit 1 17 | fi 18 | 19 | echo 'OK' 20 | exit 0 21 | -------------------------------------------------------------------------------- /dd-coding-helper/vscode-extension/README.md: -------------------------------------------------------------------------------- 1 | # Displays a clean code tip each time you open VSCode to help us all become better engineers! 2 | 3 | ## What the tips look like! 4 | 5 | ![Video of clean code tips popping up](images/tips.gif "Tip popups!") 6 | 7 | ## Configurable time between tips! 8 | 9 | ![Image of dropdown timer configuration](images/timerConfig.png "Configurable time between tips!") 10 | 11 | ## Author 12 | 13 | ### - [Chris Wingler](https://chriswingler.github.io/) 14 | 15 | ## Planned features 16 | - Add testing tips 17 | - Add testing tips to settings page 18 | - Language translations 19 | 20 | ## [Github repository](https://github.com/chriswingler/clean-code-tips) 21 | 22 | ## Attributions 23 | 24 | - Tips written by Urs Enzler [here.](https://www.planetgeek.ch/wp-content/uploads/2014/11/Clean-Code-V2.4.pdf) (PDF) 25 | 26 | - Data gathered by fritzmark [here.](https://github.com/fritzmark/CleanCodeCheatSheetJson) -------------------------------------------------------------------------------- /dd-docsify-x/tools/src/api-documenter/cli/ApiDocumenterCommandLine.ts: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. 2 | // See LICENSE in the project root for license information. 3 | 4 | import { CommandLineParser } from '@microsoft/ts-command-line'; 5 | import { MarkdownAction } from './MarkdownAction'; 6 | 7 | export class ApiDocumenterCommandLine extends CommandLineParser { 8 | constructor() { 9 | super({ 10 | toolFilename: 'api-documenter', 11 | toolDescription: 'Reads *.api.json files produced by api-extractor, ' 12 | + ' and generates API documentation in various output formats.' 13 | }); 14 | this._populateActions(); 15 | } 16 | 17 | protected onDefineParameters(): void { // override 18 | // No parameters 19 | } 20 | 21 | private _populateActions(): void { 22 | this.addAction(new MarkdownAction(this)); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/NoSelectOption.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | import Box from 'components/Box' 4 | import Typography from 'components/Typography' 5 | import Button from 'components/Button' 6 | 7 | const NoSelectOption = () => ( 8 | 17 | 18 | no index found 19 | 20 | 30 | 31 | ) 32 | 33 | export default NoSelectOption 34 | -------------------------------------------------------------------------------- /dd-coding-helper/vscode-extension/src/test/suite/index.ts: -------------------------------------------------------------------------------- 1 | import * as path from 'path'; 2 | import * as Mocha from 'mocha'; 3 | import * as glob from 'glob'; 4 | 5 | export function run(): Promise { 6 | // Create the mocha test 7 | const mocha = new Mocha({ 8 | ui: 'tdd', 9 | }); 10 | mocha.useColors(true); 11 | 12 | const testsRoot = path.resolve(__dirname, '..'); 13 | 14 | return new Promise((c, e) => { 15 | glob('**/**.test.js', { cwd: testsRoot }, (err, files) => { 16 | if (err) { 17 | return e(err); 18 | } 19 | 20 | // Add files to the test suite 21 | files.forEach(f => mocha.addFile(path.resolve(testsRoot, f))); 22 | 23 | try { 24 | // Run the mocha test 25 | mocha.run(failures => { 26 | if (failures > 0) { 27 | e(new Error(`${failures} tests failed.`)); 28 | } else { 29 | c(); 30 | } 31 | }); 32 | } catch (err) { 33 | e(err); 34 | } 35 | }); 36 | }); 37 | } 38 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/icons/InterrogationMark.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | const SvgInterrogationMark = ({ title, titleId, ...props }) => ( 3 | 10 | {title ? {title} : null} 11 | 15 | 16 | ) 17 | export default SvgInterrogationMark 18 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/icons/SearchMedium.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | const SvgSearchMedium = ({ title, titleId, ...props }) => ( 3 | 10 | {title ? {title} : null} 11 | 17 | 18 | ) 19 | export default SvgSearchMedium 20 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/icons/SearchSmall.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | const SvgSearchSmall = ({ title, titleId, ...props }) => ( 3 | 10 | {title ? {title} : null} 11 | 17 | 18 | ) 19 | export default SvgSearchSmall 20 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/icons/svg/indexes.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /dd-search-engine/sg-index-doc/src/shared/types.ts: -------------------------------------------------------------------------------- 1 | // 通用数据结构定义 2 | 3 | // 链接类型 4 | export enum LinkType { 5 | // 文章 6 | Article = 'Article', 7 | 8 | // 系列文章 9 | Series = 'Series', 10 | 11 | // 论文 12 | Paper = 'Paper', 13 | 14 | // 书籍 15 | Book = 'Book', 16 | 17 | // 视频教程 18 | Course = 'Course', 19 | 20 | // 资源集合 21 | Collection = 'Collection', 22 | 23 | // 幻灯片 24 | Slide = 'Slide', 25 | 26 | // 开源的项目或者框架、库 27 | Project = 'Project', 28 | 29 | Unknown = '未知' 30 | } 31 | 32 | export interface LinkItem { 33 | objectID: string; // md5(href) 34 | 35 | // 基本信息 36 | title: string; 37 | href: string; 38 | // 描述 39 | desc: string; 40 | // 原始数据 41 | raw: string; 42 | 43 | // 额外信息 44 | year: string; 45 | type: LinkType; 46 | 47 | author?: string; 48 | version?: string; 49 | 50 | // 文件名 51 | fileName: string; 52 | // 文件路径 53 | fileHref: string; 54 | // 从文件路径,以及文件名中获取到类目 55 | categories: string[]; 56 | } 57 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/icons/Picture.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | const SvgPicture = ({ title, titleId, ...props }) => ( 3 | 10 | {title ? {title} : null} 11 | 15 | 16 | ) 17 | export default SvgPicture 18 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/SearchBox.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import styled from 'styled-components' 3 | import { connectSearchBox } from 'react-instantsearch-dom' 4 | 5 | import Input from 'components/Input' 6 | import { SearchMedium } from 'components/icons' 7 | 8 | const SearchIcon = styled(SearchMedium)` 9 | max-width: 20px; 10 | color: ${(p) => p.theme.colors.gray[2]}; 11 | ` 12 | 13 | const SearchBox = connectSearchBox(({ currentRefinement, refine }) => { 14 | const [value, setValue] = React.useState(currentRefinement) 15 | 16 | React.useEffect(() => { 17 | refine(value) 18 | }, [value]) 19 | 20 | return ( 21 | setValue(e.target.value)} 25 | clear={() => setValue('')} 26 | placeholder="Search something" 27 | icon={} 28 | style={{ width: 520 }} 29 | /> 30 | ) 31 | }) 32 | 33 | export default SearchBox 34 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/icons/Indexes.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | const SvgIndexes = ({ title, titleId, ...props }) => ( 3 | 10 | {title ? {title} : null} 11 | 17 | 18 | ) 19 | export default SvgIndexes 20 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/src/renderer/app/loading.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react' 2 | import styled from 'styled-components' 3 | import Spinner from '../svg/spinner' 4 | 5 | export default class Loading extends Component { 6 | 7 | constructor(props) { 8 | super(props) 9 | 10 | this.state = { 11 | show: false, 12 | } 13 | 14 | this.loadingDelay = this.loadingDelay.bind(this) 15 | this.timer = setTimeout(this.loadingDelay, 250) 16 | } 17 | 18 | componentWillUnmount() { 19 | clearTimeout(this.timer) 20 | } 21 | 22 | loadingDelay() { 23 | this.setState({ show: true }) 24 | } 25 | 26 | render() { 27 | const { show } = this.state 28 | return show ? ( 29 | 30 | 31 | 32 | ) : null 33 | } 34 | } 35 | 36 | const Load = styled.div` 37 | position: absolute; 38 | right: 18px; 39 | top: 12px; 40 | ` -------------------------------------------------------------------------------- /picgo-plugin-ngte-migrater/dist/i18n/zh-CN.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.zh = void 0; 4 | /* eslint-disable no-template-curly-in-string */ 5 | /* eslint-disable comma-dangle */ 6 | exports.zh = { 7 | PIC_MIGRATER_CHOOSE_FILE: '选择文件', 8 | PIC_MIGRATER_CHOOSE_FOLDER: '选择文件夹', 9 | PIC_MIGRATER_PROCESSING: '迁移进行中...', 10 | PIC_MIGRATER_BE_PATIENT: '请耐心等待', 11 | PIC_MIGRATER_SUCCESS: '迁移完成', 12 | PIC_MIGRATER_FAIL: '${file} 迁移失败', 13 | PIC_MIGRATER_FAIL_TIP: '无成功迁移的图片,请检查 URL 是否存在或者图床配置问题', 14 | PIC_MIGRATER_SUCCESS_TIP: '图片迁移成功:${success}张, 图片迁移失败:${fail}张', 15 | // config 16 | PIC_MIGRATER_CONFIG_TIP_TITLE: '请先进行配置', 17 | PIC_MIGRATER_CONFIG_TIP_BODY: '点击 配置plugin,配置插件之后方可使用', 18 | PIC_MIGRATER_CONFIG_NEW_FILE_SUFFIX: '新文件名后缀', 19 | PIC_MIGRATER_CONFIG_INCLUDE: '只包含', 20 | PIC_MIGRATER_CONFIG_EXCLUDE: '不包含', 21 | PIC_MIGRATER_CONFIG_OLD_CONTENT_WRITE_TO_NEW_FILE: '旧内容写入新文件', 22 | PIC_MIGRATER_CONFIG_TIPS: '请输入路径或者URL' 23 | }; 24 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/.github/release-draft-template.yml: -------------------------------------------------------------------------------- 1 | name-template: 'v$RESOLVED_VERSION 🌻' 2 | tag-template: 'v$RESOLVED_VERSION' 3 | exclude-labels: 4 | - 'skip-changelog' 5 | version-resolver: 6 | minor: 7 | labels: 8 | - 'breaking-change' 9 | default: patch 10 | categories: 11 | - title: '⚠️ Breaking changes' 12 | label: 'breaking-change' 13 | - title: '🚀 Enhancements' 14 | label: 'enhancement' 15 | - title: '🐛 Bug Fixes' 16 | label: 'bug' 17 | - title: '🔒 Security' 18 | label: 'security' 19 | template: | 20 | ## Changes 21 | 22 | $CHANGES 23 | 24 | Thanks again to $CONTRIBUTORS! 🎉 25 | no-changes-template: 'Changes are coming soon 😎' 26 | sort-direction: 'ascending' 27 | replacers: 28 | - search: '/(?:and )?@dependabot-preview(?:\[bot\])?,?/g' 29 | replace: '' 30 | - search: '/(?:and )?@dependabot(?:\[bot\])?,?/g' 31 | replace: '' 32 | - search: '/(?:and )?@bors(?:\[bot\])?,?/g' 33 | replace: '' 34 | - search: '/(?:and )?@meili-bot,?/g' 35 | replace: '' 36 | -------------------------------------------------------------------------------- /dd-search-engine/sg-index-doc/src/config/dict.ts: -------------------------------------------------------------------------------- 1 | export const term = { 2 | 'Coder Essentials': '编程通识基础', 3 | Reference: '资料索引' 4 | }; 5 | 6 | // 待忽略的文件与目录 7 | export const ignoreFilesOrDirs = [ 8 | '.DS_Store', 9 | '', 10 | '.stash', 11 | 'README.md', 12 | 'Index.md', 13 | 'LICENSE', 14 | 'README-en.md', 15 | 'toc.md', 16 | 'Template.md', 17 | '.gitkeep', 18 | '.gitattributes', 19 | '.gitbook.yaml', 20 | '.meta', 21 | '.mindmap', 22 | 'meta.yml', 23 | 'ABOUT.md', 24 | 'ROADMAP.md', 25 | '.gitignore', 26 | 'meta.json' 27 | ]; 28 | 29 | export const appendix = ` 30 | 31 | # 狗粮 32 | 33 | 如果觉得本系列对你有所帮助,欢迎给我家布丁买点狗粮(支付宝扫码)~ 34 | 35 | ![](https://github.com/wxyyxc1992/OSS/blob/master/2017/8/1/Buding.jpg?raw=true) 36 | 37 | 38 | 39 | # 版权 40 | 41 | ![License: CC BY-NC-SA 4.0](https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-lightgrey.svg) 42 | 43 | ![](https://parg.co/bDm) 44 | 45 | 46 | 笔者所有文章遵循 [知识共享 署名-非商业性使用-禁止演绎 4.0 国际许可协议](https://creativecommons.org/licenses/by-nc-nd/4.0/deed.zh),欢迎转载,尊重版权。 47 | 48 | `; 49 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/icons/index.js: -------------------------------------------------------------------------------- 1 | export { default as ArrowDown } from './ArrowDown' 2 | export { default as Cross } from './Cross' 3 | export { default as DiscordLogo } from './DiscordLogo' 4 | export { default as DocumentBig } from './DocumentBig' 5 | export { default as DocumentMedium } from './DocumentMedium' 6 | export { default as GithubLogo } from './GithubLogo' 7 | export { default as Indexes } from './Indexes' 8 | export { default as InterrogationMark } from './InterrogationMark' 9 | export { default as Key } from './Key' 10 | export { default as KeyBig } from './KeyBig' 11 | export { default as LogoText } from './LogoText' 12 | export { default as MeilisearchLogo } from './MeilisearchLogo' 13 | export { default as Picture } from './Picture' 14 | export { default as SearchMedium } from './SearchMedium' 15 | export { default as SearchSmall } from './SearchSmall' 16 | export { default as SettingsBig } from './SettingsBig' 17 | export { default as SettingsMedium } from './SettingsMedium' 18 | export { default as Speed } from './Speed' 19 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/Link.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import styled from 'styled-components' 3 | import PropTypes from 'prop-types' 4 | 5 | const A = styled.a` 6 | color: ${(p) => p.theme.colors.main.default}; 7 | text-decoration: underline; 8 | transition: color 300ms; 9 | outline: none; 10 | &:hover, 11 | &:focus { 12 | color: ${(p) => p.theme.colors.main.hover}; 13 | } 14 | ` 15 | 16 | const Link = ({ href, target = '_blank', children, ...props }) => ( 17 | 18 | {children} 19 | 20 | ) 21 | 22 | Link.propTypes = { 23 | /** 24 | * The link where the user should be redirected 25 | */ 26 | href: PropTypes.string, 27 | /** 28 | * How the user should be redirected 29 | */ 30 | target: PropTypes.string, 31 | /** 32 | * The text that should be cliquable 33 | */ 34 | children: PropTypes.node, 35 | } 36 | 37 | Link.defaultProps = { 38 | href: null, 39 | target: '_blank', 40 | children: null, 41 | } 42 | 43 | export default Link 44 | -------------------------------------------------------------------------------- /dd-alfred/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "alfred-sg", 3 | "version": "0.0.8", 4 | "description": "Search through the xCompass, Docs & Links powered by Soogle", 5 | "license": "MIT", 6 | "repository": "wxyyxc1992/xCompass", 7 | "author": { 8 | "name": "wxyyxc1992", 9 | "email": "384924552@qq.com", 10 | "url": "https://github.com/wxyyxc1992/xCompass" 11 | }, 12 | "engines": { 13 | "node": ">=4" 14 | }, 15 | "scripts": { 16 | "test": "xo && ava", 17 | "postinstall": "alfy-init", 18 | "preuninstall": "alfy-cleanup" 19 | }, 20 | "files": [ 21 | "index.js", 22 | "icon.png", 23 | "info.plist", 24 | "icons", 25 | "lib" 26 | ], 27 | "keywords": [ 28 | "alfred", 29 | "workflow", 30 | "xcompass", 31 | "Soogle", 32 | "documentation", 33 | "productivity" 34 | ], 35 | "dependencies": { 36 | "alfy": "^0.7.0", 37 | "algoliasearch": "^3.32.0" 38 | }, 39 | "devDependencies": { 40 | "alfy-test": "^0.3.0", 41 | "ava": "*", 42 | "path-exists": "^3.0.0", 43 | "xo": "*" 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /dd-search-engine/sg-index-doc/src/cli/calc-sum.ts: -------------------------------------------------------------------------------- 1 | import * as walkSync from "walk-sync"; 2 | 3 | // const destDir = "/Users/zhangzixiong/Downloads/张梓雄/替换 5240"; 4 | const destDir = 5 | "/Users/zhangzixiong/Library/Containers/com.kingsoft.wpsoffice.mac/Data/Library/Application Support/Kingsoft/WPS Cloud Files/userdata/qing/filecache/27701737/联泰/财务、采购、公共关系/发票/2022/待报销/张梓雄/B3"; 6 | 7 | // const destDir = 8 | // "/Users/zhangzixiong/Library/Containers/com.kingsoft.wpsoffice.mac/Data/Library/Application Support/Kingsoft/WPS Cloud Files/userdata/qing/filecache/27701737/联泰/财务、采购、公共关系/发票/2022/待分配"; 9 | 10 | const files = walkSync(destDir); 11 | let count = 0; 12 | const totalNum = files.reduce((prev, cur) => { 13 | const fileName = cur.split("/")[0]; 14 | 15 | if (!fileName && !fileName.endsWith("pdf")) { 16 | return prev; 17 | } 18 | 19 | count++; 20 | 21 | if (fileName.includes("(")) { 22 | console.log(fileName, Number(fileName.split("-")[0])); 23 | } 24 | 25 | return prev + (Number(fileName.split("-")[0]) || 0); 26 | }, 0); 27 | 28 | console.log(count, totalNum); 29 | -------------------------------------------------------------------------------- /dd-search-engine/sg-index-doc/src/util/markdown/__test__/md.test.ts: -------------------------------------------------------------------------------- 1 | import { LinkType } from './../../../shared/types'; 2 | import { 3 | simpleTitle, 4 | titleWithYear, 5 | titleWithYearAndType, 6 | titleWithType 7 | } from './cases'; 8 | import { extractInfoFromTitle } from '../md'; 9 | 10 | test('simpleTitle', () => { 11 | expect(extractInfoFromTitle(simpleTitle)).toEqual({ 12 | year: '未知', 13 | title: 'I am title', 14 | type: LinkType.Article 15 | }); 16 | }); 17 | 18 | test('titleWithYear', () => { 19 | expect(extractInfoFromTitle(titleWithYear)).toEqual({ 20 | year: '2017', 21 | title: 'I am title', 22 | type: LinkType.Article 23 | }); 24 | }); 25 | 26 | test('titleWithType', () => { 27 | expect(extractInfoFromTitle(titleWithType)).toEqual({ 28 | year: '未知', 29 | title: 'I am title', 30 | type: LinkType.Book 31 | }); 32 | }); 33 | 34 | test('titleWithYearAndType', () => { 35 | expect(extractInfoFromTitle(titleWithYearAndType)).toEqual({ 36 | year: '2017', 37 | title: 'I am title', 38 | type: LinkType.Book 39 | }); 40 | }); 41 | -------------------------------------------------------------------------------- /dd-translator-for-coder/vscode-sg-translate/.vscode/launch.json: -------------------------------------------------------------------------------- 1 | // A launch configuration that launches the extension inside a new window 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | { 6 | "version": "0.2.0", 7 | "configurations": [ 8 | { 9 | "name": "Extension", 10 | "type": "extensionHost", 11 | "request": "launch", 12 | "runtimeExecutable": "${execPath}", 13 | "args": [ 14 | "--extensionDevelopmentPath=${workspaceFolder}" 15 | ] 16 | }, 17 | { 18 | "name": "Extension Tests", 19 | "type": "extensionHost", 20 | "request": "launch", 21 | "runtimeExecutable": "${execPath}", 22 | "args": [ 23 | "--extensionDevelopmentPath=${workspaceFolder}", 24 | "--extensionTestsPath=${workspaceFolder}/test" 25 | ] 26 | } 27 | ] 28 | } -------------------------------------------------------------------------------- /dd-translator-for-coder/vscode-sg-translate/README.md: -------------------------------------------------------------------------------- 1 | # Vscode Google Translate 2 | 3 | [![Licence](https://img.shields.io/github/license/funkyremi/vscode-google-translate.svg)](https://github.com/funkyremi/vscode-google-translate) 4 | ![VS Code Marketplace](https://vsmarketplacebadge.apphb.com/version-short/funkyremi.vscode-google-translate.svg) ![Rating](https://vsmarketplacebadge.apphb.com/rating-short/funkyremi.vscode-google-translate.svg) 5 | 6 | Quickly translate selected text right in your code 🚀 7 | 8 | ![Demo](demo.gif) 9 | 10 | ## Usage 11 | 12 | 1. Select some text to translate 13 | 1. Press `ALT+SHIFT+T` 14 | 1. Select the output languages you want and enjoy 👍 15 | 16 | ## Keyboard shortcut 17 | 18 | If the keyboard shortcut doesn't work for you, you have two options: 19 | 20 | - Open the command palette and manually select 'Translate selection(s)' 21 | - Open your keyboard shortcuts, search for 'Translate selection(s)' and set a new shortcut for this command. 22 | 23 | # Motivation & Credits 24 | 25 | - [vscode-google-translate](https://github.com/funkyremi/vscode-google-translate) 26 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/stories/Sidebar.stories.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | import Box from 'components/Box' 4 | import Sidebar from 'components/Sidebar' 5 | import { SettingsBig } from 'components/icons' 6 | 7 | export default { 8 | title: 'Components/Sidebar', 9 | component: Sidebar, 10 | parameters: { 11 | layout: 'fullscreen', 12 | }, 13 | } 14 | 15 | const Template = (args) => ( 16 | 17 | 18 | 19 | ) 20 | 21 | export const Default = Template.bind({}) 22 | Default.args = { 23 | children: ( 24 | 25 | I’m a sidebar 26 | 27 | ), 28 | } 29 | 30 | export const WithIcon = Template.bind({}) 31 | WithIcon.args = { 32 | sidebarIcon: , 33 | children: ( 34 | 35 | I’m a sidebar 36 | 37 | ), 38 | } 39 | 40 | export const DefaultClosed = Template.bind({}) 41 | DefaultClosed.args = { 42 | visible: false, 43 | children: ( 44 | 45 | I’m a sidebar 46 | 47 | ), 48 | } 49 | -------------------------------------------------------------------------------- /dd-search-engine/sg-index-doc/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "toc", 3 | "version": "1.0.0", 4 | "description": "doc sync & index", 5 | "main": "index.js", 6 | "scripts": { 7 | "ts": "ts-node", 8 | "test": "jest" 9 | }, 10 | "author": "wxyyxc1992@github", 11 | "license": "ISC", 12 | "dependencies": { 13 | "add": "^2.0.6", 14 | "algoliasearch": "^3.30.0", 15 | "bloom-filters": "^0.5.2", 16 | "bloomfilter": "^0.0.18", 17 | "chalk": "^2.1.0", 18 | "commander": "^2.11.0", 19 | "debug": "^3.1.0", 20 | "fs-extra": "^4.0.2", 21 | "github-api": "^3.0.0", 22 | "html-to-text": "^3.3.0", 23 | "isomorphic-fetch": "^2.2.1", 24 | "markdown-toc": "^1.2.0", 25 | "md5": "^2.2.1", 26 | "meilisearch": "^0.18.1", 27 | "walk-sync": "^0.3.2" 28 | }, 29 | "devDependencies": { 30 | "@types/fs-extra": "^5.0.4", 31 | "@types/jest": "^23.3.5", 32 | "@types/md5": "^2.1.33", 33 | "@types/node": "^8.0.31", 34 | "jest": "^23.6.0", 35 | "ts-jest": "^23.10.4", 36 | "ts-node": "^7.0.1", 37 | "typescript": "^3.1.3" 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /dd-docsify-x/tools/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@m-fe/docsify-x", 3 | "version": "0.0.11", 4 | "main": "index.js", 5 | "license": "MIT", 6 | "bin": { 7 | "docsify-x-auto-sidebar": "./bin/docsify-auto-sidebar.js", 8 | "docsify-x-init": "./bin/docsify-init.js", 9 | "generate-x-ts-docs": "./bin/generate-ts-docs.js", 10 | "docsify-sync-to-hugo": "./bin/docsify-sync-to-hugo.js" 11 | }, 12 | "scripts": { 13 | "build": "tsc", 14 | "ts": "ts-node" 15 | }, 16 | "devDependencies": { 17 | "@m-fe/app-config": "^0.7.1", 18 | "@m-fe/tsconfig": "^0.0.4", 19 | "@types/jest": "^24.0.11", 20 | "@types/mkdirp": "^0.5.2", 21 | "@types/node": "^14.14.9", 22 | "@types/yargs": "^12.0.11", 23 | "typescript": "^3.4.5" 24 | }, 25 | "dependencies": { 26 | "@microsoft/api-extractor-model": "^7.0.28", 27 | "@microsoft/ts-command-line": "^4.2.3", 28 | "colors": "^1.3.3", 29 | "fs-extra": "^9.0.1", 30 | "mkdirp": "^0.5.1", 31 | "yargs": "^13.2.2", 32 | "walk-sync": "^0.3.2" 33 | }, 34 | "resolutions": { 35 | "@types/react": "*" 36 | } 37 | } -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/.github/workflows/publish-build.yml: -------------------------------------------------------------------------------- 1 | name: publish-build 2 | on: 3 | release: 4 | types: [released] 5 | 6 | jobs: 7 | build-project: 8 | runs-on: ubuntu-latest 9 | steps: 10 | - uses: actions/checkout@v3 11 | - name: Setup node and cache 12 | uses: actions/setup-node@v3 13 | with: 14 | node-version: 16 15 | cache: "yarn" 16 | cache-dependency-path: yarn.lock 17 | - name: Check release validity 18 | run: sh .github/scripts/check-release.sh 19 | - name: Install project dependencies 20 | run: yarn install 21 | - name: Build project 22 | run: yarn build 23 | - name: Create ZIP folder 24 | uses: thedoctor0/zip-release@master 25 | with: 26 | filename: 'build.zip' 27 | directory: 'build' 28 | - name: Upload build to release 29 | uses: svenstaro/upload-release-action@v2 30 | with: 31 | repo_token: ${{ secrets.GITHUB_TOKEN }} 32 | file: build/build.zip 33 | tag: ${{ github.ref }} 34 | -------------------------------------------------------------------------------- /dd-docsify-x/tools/src/api-documenter/nodes/DocLinkAnchor.ts: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. 2 | // See LICENSE in the project root for license information. 3 | 4 | import { 5 | DocNode, 6 | DocNodeContainer, 7 | IDocNodeContainerParameters 8 | } from '@microsoft/tsdoc'; 9 | import { CustomDocNodeKind } from './CustomDocNodeKind'; 10 | 11 | /** 12 | * Constructor parameters for {@link DocEmphasisSpan}. 13 | */ 14 | export interface IDocLinkAnchorParameters extends IDocNodeContainerParameters { 15 | id: string; 16 | } 17 | 18 | /** 19 | * Represents a span of text that is styled with CommonMark emphasis (italics), strong emphasis (boldface), 20 | * or both. 21 | */ 22 | export class DocLinkAnchor extends DocNodeContainer { 23 | public readonly id: string; 24 | 25 | public constructor(parameters: IDocLinkAnchorParameters) { 26 | super(parameters); 27 | this.id = parameters.id; 28 | } 29 | 30 | /** @override */ 31 | public get kind(): string { 32 | return CustomDocNodeKind.LinkAnchor; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /dd-docsify-x/tools/src/api-documenter/nodes/DocTableCell.ts: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. 2 | // See LICENSE in the project root for license information. 3 | 4 | import { 5 | IDocNodeParameters, 6 | DocNode, 7 | DocSection 8 | } from '@microsoft/tsdoc'; 9 | import { CustomDocNodeKind } from './CustomDocNodeKind'; 10 | 11 | /** 12 | * Constructor parameters for {@link DocTableCell}. 13 | */ 14 | export interface IDocTableCellParameters extends IDocNodeParameters { 15 | } 16 | 17 | /** 18 | * Represents table cell, similar to an HTML `` element. 19 | */ 20 | export class DocTableCell extends DocNode { 21 | public readonly content: DocSection; 22 | 23 | public constructor(parameters: IDocTableCellParameters, sectionChildNodes?: ReadonlyArray) { 24 | super(parameters); 25 | 26 | this.content = new DocSection({ configuration: this.configuration }, sectionChildNodes); 27 | } 28 | 29 | /** @override */ 30 | public get kind(): string { 31 | return CustomDocNodeKind.TableCell; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/EmptyView.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import PropTypes from 'prop-types' 3 | 4 | import Button from 'components/Button' 5 | import Box from 'components/Box' 6 | 7 | const EmptyView = ({ buttonLink, children, ...props }) => ( 8 | 18 | {children} 19 | 29 | 30 | ) 31 | 32 | EmptyView.propTypes = { 33 | /** 34 | * External link 35 | */ 36 | buttonLink: PropTypes.string, 37 | /** 38 | * Children to be displayed 39 | */ 40 | children: PropTypes.node, 41 | } 42 | 43 | EmptyView.defaultProps = { 44 | buttonLink: null, 45 | children: null, 46 | } 47 | 48 | export default EmptyView 49 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/cypress/e2e/test-no-api-key-required.cy.js: -------------------------------------------------------------------------------- 1 | const WAITING_TIME = Cypress.env('waitingTime') 2 | 3 | describe(`Test no API key required`, () => { 4 | before(() => { 5 | cy.deleteAllIndexes() 6 | cy.wait(WAITING_TIME) 7 | }) 8 | 9 | beforeEach(() => { 10 | cy.visit('/') 11 | }) 12 | 13 | it('Should visit the dashboard', () => { 14 | cy.url().should('match', /\//) 15 | }) 16 | 17 | it('Should display the help cards view', () => { 18 | cy.contains( 19 | 'This dashboard will help you check the search results with ease.' 20 | ) 21 | cy.contains('Set your API key (optional)') 22 | cy.contains('Select an index') 23 | }) 24 | 25 | it('Should display a message telling that no api key is required', () => { 26 | cy.get('span').contains('Api Key').parent().click() 27 | cy.get('div[aria-label=settings-api-key]').within(() => { 28 | cy.contains('Enter your admin API key (optional)') 29 | cy.contains( 30 | 'You haven’t set an API key yet, if you want to set one you can read the documentation' 31 | ) 32 | }) 33 | }) 34 | }) 35 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 王下邀月熊(Chevalier) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /dd-alfred/test/test-search.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const algoliasearch = require('algoliasearch'); 3 | 4 | const client = algoliasearch('35UOMI84K6', '632bd8009b7260d30a352e9d9b14d552'); 5 | const docIndex = client.initIndex('doc'); 6 | const linkIndex = client.initIndex('link'); 7 | 8 | docIndex.setSettings({ 9 | unretrievableAttributes: ['content'] 10 | }); 11 | 12 | const matcher = (input = 'REST') => { 13 | const tokens = input 14 | .trim() 15 | .toLowerCase() 16 | .split(' '); 17 | 18 | const isLink = tokens[0] === 'link'; 19 | 20 | let index = isLink ? linkIndex : docIndex; 21 | 22 | index.search( 23 | { 24 | query: tokens.join(' '), 25 | hitsPerPage: 25 26 | }, 27 | function(err, content) { 28 | if (err) throw err; 29 | 30 | console.table( 31 | (content.hits || []).map(hit => ({ 32 | title: hit.fileName, 33 | autocomplete: hit.fileName, 34 | subtitle: hit.repo, 35 | keywords: hit.categories, 36 | arg: hit.href, 37 | quicklookurl: hit.href, 38 | icon: { 39 | path: `./icons/${isLink ? 'link' : 'doc'}.png` 40 | } 41 | })) 42 | ); 43 | } 44 | ); 45 | }; 46 | 47 | matcher(); 48 | -------------------------------------------------------------------------------- /picgo-plugin-ngte-migrater/License: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Molunerfinn 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/icons/DocumentMedium.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | const SvgDocumentMedium = ({ title, titleId, ...props }) => ( 3 | 10 | {title ? {title} : null} 11 | 15 | 21 | 22 | ) 23 | export default SvgDocumentMedium 24 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/LICENCE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019-2022 Meili SAS 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /dd-translator-for-coder/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 王下邀月熊(Chevalier) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/src/renderer/svg/invert.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import styled from 'styled-components' 3 | 4 | export default () => ( 5 | 6 | 11 | 16 | 17 | ) 18 | -------------------------------------------------------------------------------- /dd-translator-for-coder/vscode-sg-translate/LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 HookyQR 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /dd-docsify-x/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 ng-tech-edu: Next generation technology education(NGTE) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /dd-search-engine/sg-index-doc/src/cli/sync-hugo.ts: -------------------------------------------------------------------------------- 1 | import { generateSummary } from '../service/summary/generateSummary'; 2 | import repos from '../config/repo-config'; 3 | const os = require('os'); 4 | const program = require('commander'); 5 | const fs = require('fs-extra'); 6 | 7 | program 8 | .version('0.0.1') 9 | .option( 10 | '-d, --directory [directory]', 11 | '工作目录,默认为当前目录', 12 | os.homedir() + '/Desktop' 13 | ) 14 | .option('-l, --language [language]', '指定生成的语言版本 [zh/en]', 'zh'); 15 | 16 | program.parse(process.argv); 17 | 18 | const targetDir = '/Users/apple/Workspace/Github/NGTE/ngte-docs'; 19 | 20 | const skippedRepos = [ 21 | 'Awesome-Lists', 22 | 'Awesome-CheatSheets', 23 | 'Awesome-CS-Books' 24 | ]; 25 | 26 | (async () => { 27 | let summary = '# Summary \n'; 28 | 29 | for (let repoName of Object.keys(repos)) { 30 | if (skippedRepos.indexOf(repoName) > -1) { 31 | console.log(repoName); 32 | continue; 33 | } 34 | 35 | const s = await generateSummary(repoName, targetDir); 36 | 37 | summary += s; 38 | } 39 | 40 | await fs.remove(`${targetDir}/SUMMARY.md`); 41 | await fs.outputFile(`${targetDir}/SUMMARY.md`, summary); 42 | })(); 43 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Alessio Forte 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /dd-search-engine/sg-index-doc/src/cli/generate-summary.ts: -------------------------------------------------------------------------------- 1 | import { generateSummary } from '../service/summary/generateSummary'; 2 | import repos from '../config/repo-config'; 3 | const os = require('os'); 4 | const program = require('commander'); 5 | const fs = require('fs-extra'); 6 | 7 | program 8 | .version('0.0.1') 9 | .option( 10 | '-d, --directory [directory]', 11 | '工作目录,默认为当前目录', 12 | os.homedir() + '/Desktop' 13 | ) 14 | .option('-l, --language [language]', '指定生成的语言版本 [zh/en]', 'zh'); 15 | 16 | program.parse(process.argv); 17 | 18 | const targetDir = '/Users/apple/Workspace/Github/NGTE/ngte-docs'; 19 | 20 | const skippedRepos = [ 21 | 'Awesome-Lists', 22 | 'Awesome-CheatSheets', 23 | 'Awesome-CS-Books' 24 | ]; 25 | 26 | (async () => { 27 | let summary = '# Summary \n'; 28 | 29 | for (let repoName of Object.keys(repos)) { 30 | if (skippedRepos.indexOf(repoName) > -1) { 31 | console.log(repoName); 32 | continue; 33 | } 34 | 35 | const s = await generateSummary(repoName, targetDir); 36 | 37 | summary += s; 38 | } 39 | 40 | await fs.remove(`${targetDir}/SUMMARY.md`); 41 | await fs.outputFile(`${targetDir}/SUMMARY.md`, summary); 42 | })(); 43 | -------------------------------------------------------------------------------- /dd-alfred/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) Sam Verschueren (github.com/SamVerschueren) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/icons/DocumentBig.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react' 2 | const SvgDocumentBig = ({ title, titleId, ...props }) => ( 3 | 10 | {title ? {title} : null} 11 | 15 | 21 | 22 | ) 23 | export default SvgDocumentBig 24 | -------------------------------------------------------------------------------- /dd-search-engine/meilisearch-dashboard/src/components/ScrollToTop.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import Color from 'color' 3 | import styled from 'styled-components' 4 | 5 | import IconButton from 'components/IconButton' 6 | import ArrowDownIcon from 'components/icons/ArrowDown' 7 | 8 | const ArrowDown = styled(ArrowDownIcon)` 9 | transform: rotate(180deg); 10 | color: white; 11 | ` 12 | 13 | const ScrollButton = styled(IconButton)` 14 | position: fixed; 15 | bottom: 40px; 16 | right: 40px; 17 | background-color: ${(p) => Color(p.theme.colors.gray[2]).alpha(0.4)}; 18 | width: 40px; 19 | height: 40px; 20 | border-radius: 50%; 21 | display: flex; 22 | align-items: center; 23 | justify-content: center; 24 | transition: background-color 300ms; 25 | 26 | &:hover, 27 | &:focus { 28 | background-color: ${(p) => Color(p.theme.colors.gray[4])}; 29 | } 30 | ` 31 | 32 | const ScrollToTop = () => { 33 | const scrollToTop = () => { 34 | window.scroll({ top: 0, behavior: 'smooth' }) 35 | } 36 | 37 | return ( 38 | scrollToTop()} aria-label="scroll to top"> 39 | 40 | 41 | ) 42 | } 43 | 44 | export default ScrollToTop 45 | -------------------------------------------------------------------------------- /dd-docsify-x/tools/src/api-documenter/cli/MarkdownAction.ts: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. 2 | // See LICENSE in the project root for license information. 3 | 4 | import { ApiDocumenterCommandLine } from './ApiDocumenterCommandLine'; 5 | import { BaseAction } from './BaseAction'; 6 | import { MarkdownDocumenter } from '../documenters/MarkdownDocumenter'; 7 | import { ApiModel } from '@microsoft/api-extractor-model'; 8 | 9 | export class MarkdownAction extends BaseAction { 10 | constructor(parser: ApiDocumenterCommandLine) { 11 | super({ 12 | actionName: 'markdown', 13 | summary: 'Generate documentation as Markdown files (*.md)', 14 | documentation: 'Generates API documentation as a collection of files in' 15 | + ' Markdown format, suitable for example for publishing on a GitHub site.' 16 | }); 17 | } 18 | 19 | protected onExecute(): Promise { // override 20 | const apiModel: ApiModel = this.buildApiModel(); 21 | const markdownDocumenter: MarkdownDocumenter = new MarkdownDocumenter(apiModel); 22 | markdownDocumenter.generateFiles(this.outputFolder); 23 | return Promise.resolve(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /dd-translator-for-coder/electron-customizable-translator/src/renderer/app/app.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react' 2 | import { connect } from 'react-redux' 3 | import LanguagesBar from './languages-bar' 4 | import Response from './response' 5 | import { setMainWindowSize } from './utils' 6 | import Textarea from './textarea' 7 | import Suggestions from './suggestions' 8 | import ErrorMessage from './error-message' 9 | import DidYouMean from './did-you-mean' 10 | 11 | class App extends Component { 12 | 13 | componentDidUpdate() { 14 | setTimeout(() => setMainWindowSize(), 300) 15 | } 16 | 17 | render() { 18 | return ( 19 | 20 | 21 |
22 |