├── .github └── workflows │ ├── main.yml │ └── ng-env-replace.js ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── angular.json ├── browserslist ├── e2e ├── protractor.conf.js ├── src │ ├── app.e2e-spec.ts │ └── app.po.ts └── tsconfig.json ├── karma.conf.js ├── package-lock.json ├── package.json ├── src ├── app │ ├── app.component.html │ ├── app.component.ts │ ├── app.module.ts │ ├── core │ │ ├── components │ │ │ └── header │ │ │ │ ├── header.component.html │ │ │ │ └── header.component.ts │ │ ├── core.module.ts │ │ ├── interceptors │ │ │ └── cache-interceptor.ts │ │ └── services │ │ │ ├── caching.service.ts │ │ │ ├── command.service.ts │ │ │ ├── config.service.ts │ │ │ ├── github-data.service.ts │ │ │ ├── pattern.service.ts │ │ │ └── redis-connect.service.ts │ ├── features │ │ ├── command │ │ │ ├── command-documentation │ │ │ │ ├── command-documentation.component.html │ │ │ │ └── command-documentation.component.ts │ │ │ ├── command-line │ │ │ │ ├── command-line.component.html │ │ │ │ ├── command-line.component.ts │ │ │ │ └── command-line.validator.ts │ │ │ ├── command-list │ │ │ │ ├── command-list.component.html │ │ │ │ ├── command-list.component.scss │ │ │ │ └── command-list.component.ts │ │ │ ├── command-output │ │ │ │ ├── command-output.component.html │ │ │ │ ├── command-output.component.scss │ │ │ │ └── command-output.component.ts │ │ │ ├── command-summary │ │ │ │ ├── command-summary.component.html │ │ │ │ └── command-summary.component.ts │ │ │ └── command.module.ts │ │ └── pattern │ │ │ ├── pattern-content │ │ │ ├── pattern-content.component.html │ │ │ ├── pattern-content.component.scss │ │ │ └── pattern-content.component.ts │ │ │ ├── pattern-list │ │ │ ├── pattern-list.component.html │ │ │ ├── pattern-list.component.scss │ │ │ └── pattern-list.component.ts │ │ │ └── pattern.module.ts │ └── shared │ │ ├── models │ │ ├── command-argument.interface.ts │ │ ├── command.interface.ts │ │ ├── github-content.interface.ts │ │ ├── pattern.interface.ts │ │ └── response.interface.ts │ │ ├── pipes │ │ ├── markdown.pipe.ts │ │ └── search-filter.pipe.ts │ │ └── shared.module.ts ├── assets │ ├── .gitkeep │ └── redis-white.png ├── environments │ ├── command-blacklist.ts │ ├── environment.prod.ts │ └── environment.ts ├── favicon.ico ├── index.html ├── main.ts ├── polyfills.ts ├── styles │ ├── _variables.scss │ └── styles.scss └── test.ts ├── tsconfig.app.json ├── tsconfig.json ├── tsconfig.spec.json └── tslint.json /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: Deploy to GitHub Pages 2 | 3 | on: 4 | push: 5 | branches: 6 | - master 7 | 8 | jobs: 9 | build: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - name: Checkout 13 | uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. 14 | with: 15 | persist-credentials: false 16 | - name: Use Node.js 10.x 17 | uses: actions/setup-node@v1 18 | with: 19 | node-version: '10.x' 20 | - name: Build 21 | run: | 22 | npm install -g @angular/cli 23 | npm install 24 | node ./.github/workflows/ng-env-replace.js 25 | ng build --prod --base-href="/redis-patterns-console/" 26 | env: 27 | REDIS_SERVER_API_WS: ${{ secrets.REDIS_SERVER_API_WS }} 28 | - name: Deploy 29 | uses: JamesIves/github-pages-deploy-action@releases/v2 30 | env: 31 | ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} 32 | BASE_BRANCH: master 33 | BRANCH: gh-pages 34 | FOLDER: dist 35 | -------------------------------------------------------------------------------- /.github/workflows/ng-env-replace.js: -------------------------------------------------------------------------------- 1 | const fs = require('fs'); 2 | 3 | const targetPath = './src/environments/environment.prod.ts'; 4 | const file = fs.readFileSync(targetPath ,'utf8'); 5 | const newFile = file.replace('REDIS_SERVER_API_WS', process.env.REDIS_SERVER_API_WS); 6 | 7 | fs.writeFileSync(targetPath , newFile); 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | # compiled output 3 | /dist 4 | /tmp 5 | /out-tsc 6 | 7 | # Only exists if Bazel was run 8 | /bazel-out 9 | 10 | # dependencies 11 | /node_modules 12 | 13 | # profiling files 14 | chrome-profiler-events.json 15 | speed-measure-plugin.json 16 | 17 | # IDEs and editors 18 | /.idea 19 | .project 20 | .classpath 21 | .c9/ 22 | *.launch 23 | .settings/ 24 | *.sublime-workspace 25 | 26 | # IDE - VSCode 27 | .vscode/* 28 | !.vscode/settings.json 29 | !.vscode/tasks.json 30 | !.vscode/launch.json 31 | !.vscode/extensions.json 32 | .history/* 33 | 34 | # misc 35 | /.sass-cache 36 | /connect.lock 37 | /coverage 38 | /libpeerconnection.log 39 | npm-debug.log 40 | yarn-error.log 41 | testem.log 42 | /typings 43 | environment.local.ts 44 | 45 | # System Files 46 | .DS_Store 47 | Thumbs.db -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | We would love for you to contribute to our projects and help make it even better than it is today! 4 | 5 | ## Submitting a Pull Request (PR) 6 | Before you submit your Pull Request (PR) consider the following guidelines: 7 | 8 | 1. Search for an open or closed PR 9 | that relates to your submission. You don't want to duplicate effort. 10 | 1. Fork the repo. 11 | 1. Make your changes in a new git branch: 12 | 13 | ```shell 14 | git checkout -b my-fix-branch master 15 | ``` 16 | 1. Commit your changes using a descriptive commit message that follows our 17 | [commit message conventions](#commit). Adherence to these conventions 18 | is necessary because release notes are automatically generated from these messages. 19 | 20 | ```shell 21 | git commit -a 22 | ``` 23 | Note: the optional commit `-a` command line option will automatically "add" and "rm" edited files. 24 | 25 | 1. Push your branch to GitHub: 26 | 27 | ```shell 28 | git push origin my-fix-branch 29 | ``` 30 | 31 | 1. In GitHub, send a pull request to `master` branch. 32 | * If we suggest changes then: 33 | * Make the required updates. 34 | * Rebase your branch and force push to your GitHub repository (this will update your Pull Request): 35 | 36 | ```shell 37 | git rebase master -i 38 | git push -f 39 | ``` 40 | 41 | ## Commit Message Guidelines 42 | 43 | We have very precise rules over how our git commit messages can be formatted. This leads to **more 44 | readable messages** that are easy to follow when looking through the **project history**. But also, 45 | we use the git commit messages to **generate the change log**. 46 | 47 | ### Commit Message Format 48 | Each commit message consists of a **header**, a **body** and a **footer**. The header has a special 49 | format that includes a **type**, a **scope** and a **subject**: 50 | 51 | ``` 52 | (): 53 | 54 | 55 | 56 |