This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Considering that your app version is stored in VERSION.md file | |
| # | |
| # Example: ./gitlab-changelog.sh | |
| # Example: ./gitlab-changelog.sh <YOUR-GITLAB-PROJECT-ACCESS-TOKEN> | |
| #!/bin/bash | |
| app_version=$(cat VERSION.md) | |
| branch=dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Gets the last version number of the project and generates remotely the changelog on the current branch | |
| * | |
| * Master branch: | |
| * Only commits with 'Fix' git trailer will be involved in changelog entries | |
| * | |
| * Other branch: | |
| * Only commits with 'Changelog' (default value) git trailer will be involved in changelog entries. | |
| * | |
| * Example: node ./gitlab-changelog.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Gets the last version number of the project and generates remotely the changelog on the current branch */ | |
| const { exec } = require('child_process'); | |
| const axios = require('axios'); | |
| const version = require('../../package.json').version; | |
| // Allow to access the environment variables | |
| require('dotenv').config(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Gets the last version number of the project and generates remotely the changelog on the dev branch via GitLab API. | |
| * | |
| * Example: node ./gitlab-changelog.js | |
| */ | |
| const axios = require('axios'); | |
| const version = require('../../package.json').version; | |
| const branch = 'dev'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import styled from 'styled-components' | |
| const CircleProgressBar = styled.div({ | |
| background: ({ progress }) => { | |
| // Adapt the logic here | |
| const angle = 360 * progress | |
| return `radial-gradient(white 50%, transparent 51%), | |
| conic-gradient(transparent 0deg ${angle}deg, gainsboro ${angle}deg 360deg), | |
| conic-gradient(orange 0deg, yellow 90deg, lightgreen 180deg, green)` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| import CircleProgressBar from './CircleProgressBar.svelte' | |
| const progress = Math.random() | |
| </script> | |
| <CircleProgressBar progress={progress} /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template></template> | |
| <script lang="ts"> | |
| import { computed, defineComponent, toRefs } from 'vue'; | |
| export default defineComponent({ | |
| props: { | |
| progress: { type: Number, required: true } | |
| }, | |
| setup(props) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Component({ | |
| selector: 'circle-progress-bar', | |
| template: ``, | |
| styles: [` | |
| .circle-container__progress { // For conic-gradient approach | |
| stroke-dashoffset: var(--progress-stroke-dashoffset); | |
| } | |
| #progress-circle { // For SVG approach | |
| background: var(--progress-background); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [type="checkbox"] { | |
| accent-color: darkgreen; | |
| } | |
| [type="radio"] { | |
| accent-color: midnightblue; | |
| } | |
| * { | |
| accent-color: tomato; |