Skip to content

Commit 01fe14f

Browse files
authored
chore: convert repo into monorepo
1 parent 83f1ba8 commit 01fe14f

726 files changed

Lines changed: 87 additions & 76 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module.exports = {
2222
curly: 'off',
2323
'implicit-arrow-linebreak': 'off',
2424
'import/first': 'off',
25+
"import/no-extraneous-dependencies": ['error', {'devDependencies': ['**/test/**', 'vite.config.js']}],
2526
'lines-between-class-members': ['error', 'always', {
2627
exceptAfterSingleLine: true
2728
}],

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Closes #
44
Thank you for contributing to ODK Central!
55
66
Before sending this PR, please read
7-
https://github.com/getodk/central-frontend/blob/master/CONTRIBUTING.md
7+
https://github.com/getodk/central-frontend/blob/master/apps/central/docs/CONTRIBUTING.md
88
-->
99

1010
#### What has been done to verify that this works as intended?

.image-hashes

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
docs/img/icomoon-choose-new-icons.png:9032b25097eb798c8a6f566b27d5f04cd9a3c9a95f8d6f5f6b3514fc080d3cc9
2-
docs/img/icomoon-font-awesome.png:06e794774dc14a47b2fbd4cf61e5abdd150b2e44ecb628ead81dea2da6da5e32
1+
apps/central/docs/img/icomoon-choose-new-icons.png:9032b25097eb798c8a6f566b27d5f04cd9a3c9a95f8d6f5f6b3514fc080d3cc9
2+
apps/central/docs/img/icomoon-font-awesome.png:06e794774dc14a47b2fbd4cf61e5abdd150b2e44ecb628ead81dea2da6da5e32
33
public/android-chrome-192x192.png:63d50e786c5b6090c7b16e5dbcd34828f23a7dab4e58f5c7733ba34e45501197
44
public/android-chrome-512x512.png:d156e01570f09d2b50c3f4e95d56fcc4b729c5848279688e24513ee1799f7947
55
public/apple-touch-icon.png:b3b93bda3da3b27ca561a7f2ab0130631aa51b05bf0884953e0d69b1acb91cce
66
public/favicon-16x16.png:08c97e553ed6d9937d12fb76d70b98e5381f0741d8bc96594638838bc2245b5c
77
public/favicon-32x32.png:229cb3e6ff89215fccb06edfed90442443b1f0662076e3c39945c76470db9a61
8-
src/assets/images/form/web-forms-settings-confirmation/banner@1x.png:de83636beea2baf94b7bd0ec85e2a095c0fe5399ff551b799a77c8553a063568
9-
src/assets/images/form/web-forms-settings-confirmation/banner@2x.png:ab04c7ab404d00ce77348ffbd43a0041ad4a60dc68548eaeab0be713cdd7d100
10-
src/assets/images/odk-logo.png:864211b092fce4c72c37e089b8bb96a2d0d84f140129935286f071605237fc3c
11-
src/assets/images/whats-new/banner@1x.png:5d400a15ed27c848dff091018d5f950759420e2ec8c2f6830aa7e53062c222a7
12-
src/assets/images/whats-new/banner@2x.png:7e8bcb4fc56608c02aee366dc4a415ca07ffcda686cf2e324e6f45143b6ac50e
8+
apps/central/src/assets/images/form/web-forms-settings-confirmation/banner@1x.png:de83636beea2baf94b7bd0ec85e2a095c0fe5399ff551b799a77c8553a063568
9+
apps/central/src/assets/images/form/web-forms-settings-confirmation/banner@2x.png:ab04c7ab404d00ce77348ffbd43a0041ad4a60dc68548eaeab0be713cdd7d100
10+
apps/central/src/assets/images/odk-logo.png:864211b092fce4c72c37e089b8bb96a2d0d84f140129935286f071605237fc3c
11+
apps/central/src/assets/images/whats-new/banner@1x.png:5d400a15ed27c848dff091018d5f950759420e2ec8c2f6830aa7e53062c222a7
12+
apps/central/src/assets/images/whats-new/banner@2x.png:7e8bcb4fc56608c02aee366dc4a415ca07ffcda686cf2e324e6f45143b6ac50e

.tx/config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
host = https://www.transifex.com
33

44
[o:getodk:p:central:r:strings]
5-
file_filter = transifex/strings_<lang>.json
6-
source_file = transifex/strings_en.json
5+
file_filter = apps/central/transifex/strings_<lang>.json
6+
source_file = apps/central/transifex/strings_en.json
77
source_lang = en
88
type = STRUCTURED_JSON
99
minimum_perc = 0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ You can learn more about ODK Central by visiting the [docs](https://docs.getodk.
2525

2626
## Contributing
2727

28-
We need your help to make ODK Central Frontend as useful as possible! Please see the [Contribution Guide](/CONTRIBUTING.md) for detailed information on discussion forums, project policies, code guidelines, and an overview of the software architecture.
28+
We need your help to make ODK Central Frontend as useful as possible! Please see the [Contribution Guide](/apps/central/docs/CONTRIBUTING.md) for detailed information on discussion forums, project policies, code guidelines, and an overview of the software architecture.
2929

3030
## Setting up your development environment
3131

apps/central/bin/.eslintrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
extends: '../../../.eslintrc.js',
3+
rules: {
4+
'no-console': 'off',
5+
},
6+
};
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const { logThenThrow, mapComponentsToFiles } = require('../util/util');
88

99
const filenamesByComponent = mapComponentsToFiles('src/components');
1010
const { messages: sourceMessages, transifexPaths } = readSourceMessages(
11-
'src/locales',
11+
'apps/central/src/locales',
1212
filenamesByComponent
1313
);
1414
for (const basename of fs.readdirSync('transifex')) {

bin/transifex/list-duplicates.js renamed to apps/central/bin/transifex/list-duplicates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { readFileSync } = require('node:fs');
22

33
const { containsSubarray } = require('../util/util');
44

5-
const structured = JSON.parse(readFileSync('transifex/strings_en.json').toString());
5+
const structured = JSON.parse(readFileSync('apps/central/transifex/strings_en.json').toString());
66

77
const pathsByString = new Map();
88
const addString = (s, path) => {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ const { mapComponentsToFiles } = require('../util/util');
55
const { readSourceMessages, rekeySource, restructure } = require('../util/transifex');
66

77
const { messages, transifexPaths } = readSourceMessages(
8-
'src/locales',
9-
mapComponentsToFiles('src/components')
8+
'apps/central/src/locales',
9+
mapComponentsToFiles('apps/central/src/components')
1010
);
1111
const structured = restructure(messages);
1212
rekeySource(structured, transifexPaths);

0 commit comments

Comments
 (0)