diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0e9312c..59b2355 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,7 @@ stages: - release variables: - PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/gitdock" + PACKAGE_REGISTRY_URL: '${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/gitdock' release-version-creation: stage: version @@ -35,7 +35,7 @@ install-dependencies-windows: cache: key: $CI_COMMIT_REF_SLUG-windows paths: - - node_modules/ + - node_modules/ install-dependencies-mac: stage: dependencies @@ -51,8 +51,7 @@ install-dependencies-mac: cache: key: $CI_COMMIT_REF_SLUG-mac paths: - - node_modules/ - + - node_modules/ install-dependencies-linux: stage: dependencies @@ -67,7 +66,7 @@ install-dependencies-linux: cache: key: $CI_COMMIT_REF_SLUG-linux paths: - - node_modules/ + - node_modules/ feature-tests: stage: test @@ -77,8 +76,8 @@ feature-tests: tags: - linux image: node:latest - needs: ["install-dependencies-linux"] - cache: + needs: ['install-dependencies-linux'] + cache: key: $CI_COMMIT_REF_SLUG-linux paths: - node_modules/ @@ -95,6 +94,23 @@ feature-tests: - export DISPLAY=:99 - npm test +prettier: + stage: test + only: + - tags + - merge_requests + tags: + - linux + image: node:latest + needs: ['install-dependencies-linux'] + cache: + key: $CI_COMMIT_REF_SLUG-linux + paths: + - node_modules/ + policy: pull + script: + - npm run prettier:check + build-windows: stage: build only: @@ -104,8 +120,8 @@ build-windows: - windows - shared-windows - windows-1809 - needs: ["install-dependencies-windows"] - cache: + needs: ['install-dependencies-windows'] + cache: key: $CI_COMMIT_REF_SLUG-windows paths: - node_modules/ @@ -127,8 +143,8 @@ build-mac: tags: - shared-macos-amd64 image: macos-11-xcode-12 - needs: ["install-dependencies-mac"] - cache: + needs: ['install-dependencies-mac'] + cache: key: $CI_COMMIT_REF_SLUG-mac paths: - node_modules/ @@ -150,8 +166,8 @@ build-linux: tags: - linux image: node:latest - needs: ["install-dependencies-linux"] - cache: + needs: ['install-dependencies-linux'] + cache: key: $CI_COMMIT_REF_SLUG-linux paths: - node_modules/ @@ -209,16 +225,16 @@ release: - echo "v$VERSION" - echo "${PACKAGE_REGISTRY_URL}/${VERSION}/GitDock.dmg"} release: - name: "v$VERSION" - tag_name: "v$VERSION" - description: "v$VERSION" - assets: - links: - - name: "MacOS" - url: "${PACKAGE_REGISTRY_URL}/${VERSION}/GitDock.dmg" - - name: "Windows" - url: "${PACKAGE_REGISTRY_URL}/${VERSION}/GitDock.exe" - - name: "Linux deb" - url: "${PACKAGE_REGISTRY_URL}/${VERSION}/GitDock.deb" - - name: "Linux rpm" - url: "${PACKAGE_REGISTRY_URL}/${VERSION}/GitDock.rpm" + name: 'v$VERSION' + tag_name: 'v$VERSION' + description: 'v$VERSION' + assets: + links: + - name: 'MacOS' + url: '${PACKAGE_REGISTRY_URL}/${VERSION}/GitDock.dmg' + - name: 'Windows' + url: '${PACKAGE_REGISTRY_URL}/${VERSION}/GitDock.exe' + - name: 'Linux deb' + url: '${PACKAGE_REGISTRY_URL}/${VERSION}/GitDock.deb' + - name: 'Linux rpm' + url: '${PACKAGE_REGISTRY_URL}/${VERSION}/GitDock.rpm' diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..1fbed0f --- /dev/null +++ b/.prettierignore @@ -0,0 +1,13 @@ +.circleci +.github +assets +node_modules +out/ +package-lock.json +.DS_Store +Thumbs.db +/.vscode +.vscode/* +yarn.lock +builds/ +/.idea diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..ace0e29 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,6 @@ +{ + "printWidth": 100, + "singleQuote": true, + "arrowParens": "always", + "trailingComma": "all" +} diff --git a/README.md b/README.md index 1c7ac19..87199b6 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ GitDock is a MacOS/Windows/Linux app that displays all your GitLab activities in You can either have a look at this walkthrough video I recorded, or just try it out yourself by downloading it from the [releases](https://gitlab.com/mvanremmerden/gitdock/-/releases). -[](https://www.youtube.com/watch?v=WkVS38wo4_w "GitDock ⚓️") +[](https://www.youtube.com/watch?v=WkVS38wo4_w 'GitDock ⚓️') ## Installation @@ -40,8 +40,8 @@ Depending on whether you use GitLab.com or a self-managed instance, you can eith Just click the "Login with GitLab" button, and then enter your username and password. Afterwards, you might be seeing the GitLab homepage, but should very quickly and automatically be redirected to your GitDock overview page. -| Start | Login | -| ------ | ------ | +| Start | Login | +| ---------------------------------- | ---------------------------------- | |  |  | @@ -52,9 +52,9 @@ To log in with an account from a self-managed instance, you first have to create Go to the Access Tokens page by first opening the user dropdown, clicking "Preferences" and then navigating to "Access tokens" in the left sidebar. -| User dropdown | Access tokens | -| ------ | ------ | -|  |  | +| User dropdown | Access tokens | +| ----------------------------------------- | --------------------------------------------- | +|  |  | Enter a token name, mark the `read_api` checkbox and then click "Create personal access token". On the following screen, copy the newly created access token and paste it into the GitDock application, together with the URL of your self-managed instance. @@ -66,8 +66,8 @@ Enter a token name, mark the `read_api` checkbox and then click "Create personal Whenever you start a new pipeline, a system notification shows up and the GitDock icon in the menu bar changes to a running pipeline icon. Once the pipeline completes, you will receive another notification with the final pipeline status. -| Running | Completed | -| ------ | ------ | +| Running | Completed | +| --------------------------------------------------- | ------------------------------------------------------- | |  |  | #### To-Dos @@ -78,14 +78,14 @@ Whenever a new To-Do gets created for you, the system notification will show you ### My Issues, MRs & To-Do list -At the top of the app, you will see the typical sections of issues, MRs and the To-Do list. +At the top of the app, you will see the typical sections of issues, MRs and the To-Do list.  You might be used to this layout already from our GitLab UI. The only difference is that on the detail pages, you can more easily switch directly to the objects you care about by using the filters to e.g. see the last MRs you have approved and that have already been merged. -| Issues | MRs | To-Do list | -| ------ | ------ | ------ | +| Issues | MRs | To-Do list | +| ------------------------------- | ----------------------------------------------- | ------------------------------ | |  |  |  | ### My commits @@ -124,7 +124,7 @@ A list of all your recent comments is also visible on the overview page. Due  -*The loading time for comments is significantly longer than for other objects, as each comment requires 3 API calls to collect all necessary information.* +_The loading time for comments is significantly longer than for other objects, as each comment requires 3 API calls to collect all necessary information._ ### Bookmarks @@ -138,8 +138,8 @@ If you have a specific issue or merge request you care about and know you will h To make Gitdock as accessible and usable as possible, you can switch between dark and light theme. -| Dark | Light | -| ------ | ------ | +| Dark | Light | +| --------------------------- | ----------------------------- | |  |  | #### Analytics diff --git a/index.html b/index.html index 4c4dfd0..938e994 100644 --- a/index.html +++ b/index.html @@ -1,162 +1,184 @@ +
+ +
+-
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+