-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
76 changed files
with
17,710 additions
and
16,505 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
VITE_ROOT_KEY= | ||
VITE_MAPBOX_ACCESS_TOKEN= | ||
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
# By default, a workflow only runs when a pull_request's activity type is | ||
# opened, synchronize, or reopened. Adding ready_for_review here ensures | ||
# that CI runs when a PR is marked as not a draft, since we skip CI when a | ||
# PR is draft | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
|
||
jobs: | ||
all: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
- name: Install deps | ||
run: npm ci | ||
- name: Build translations | ||
run: npm run intl:translations | ||
- name: Run tests | ||
run: npm test |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
20.14 | ||
20.18 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/out | ||
/data | ||
/.vite | ||
/messages | ||
/translations |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,35 @@ | ||
// @ts-check | ||
|
||
/** @type {import("@ianvs/prettier-plugin-sort-imports").PrettierConfig} */ | ||
/** @type {import('prettier').Config} */ | ||
export default { | ||
semi: false, | ||
singleQuote: true, | ||
arrowParens: 'always', | ||
plugins: ['@ianvs/prettier-plugin-sort-imports'], | ||
// Mostly inspired by examples from https://github.com/IanVS/prettier-plugin-sort-imports?tab=readme-ov-file#importorder | ||
importOrder: [ | ||
'<BUILT_IN_MODULES>', | ||
'^react$', | ||
'<THIRD_PARTY_MODULES>', | ||
'', | ||
'^(?!.*[.]css$)[./].*$', | ||
'', | ||
'.css$', | ||
], | ||
tabWidth: 2, | ||
useTabs: true, | ||
semi: false, | ||
singleQuote: true, | ||
arrowParens: 'always', | ||
trailingComma: 'all', | ||
plugins: [ | ||
'@ianvs/prettier-plugin-sort-imports', | ||
'./node_modules/prettier-plugin-jsdoc/dist/index.js', | ||
], | ||
/** | ||
* Configuration @ianvs/prettier-plugin-sort-imports | ||
*/ | ||
// Mostly inspired by examples from https://github.com/IanVS/prettier-plugin-sort-imports?tab=readme-ov-file#importorder | ||
importOrder: [ | ||
'<BUILT_IN_MODULES>', | ||
'^react$', | ||
'<THIRD_PARTY_MODULES>', | ||
'', | ||
'^(?!.*[.]css$)[./].*$', | ||
'', | ||
'.css$', | ||
], | ||
importOrderTypeScriptVersion: '5.6.3', | ||
// TODO: Uncomment when a release newer than 4.3.1 is out | ||
// importOrderCaseSensitive: true, | ||
/** | ||
* Configuration for prettier-plugin-jsdoc | ||
*/ | ||
jsdocCommentLineStrategy: 'keep', | ||
jsdocAddDefaultToDescription: false, | ||
jsdocSeparateReturnsFromParam: true, | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
node 20.14 | ||
node 20.18 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,27 @@ | ||
# CoMapeo Desktop | ||
|
||
Scaffolded using https://www.electronforge.io/templates/vite. | ||
Go to the [Development](./docs/DEVELOPMENT.md) docs to learn about how the project is structured and how to work on it locally. | ||
|
||
Go to the [Development](./docs/DEVELOPMENT.md) docs to learn about how the project's structure and how to work on it locally. | ||
## Quick Start | ||
|
||
1. Clone the repo: | ||
|
||
```sh | ||
git clone https://github.com/digidem/comapeo-desktop.git | ||
``` | ||
|
||
2. Install dependencies: | ||
|
||
```sh | ||
npm install | ||
``` | ||
|
||
3. Start the application in development mode: | ||
|
||
```sh | ||
npm start | ||
``` | ||
|
||
## License | ||
|
||
[GPL-3.0](./LICENSE) |
This file contains 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
Oops, something went wrong.