@fgv/ts-res-browser 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rush/temp/5fc90bc7c2ccf812114ea099111568e5429be2a2.tar.log +15 -0
- package/.rush/temp/chunked-rush-logs/ts-res-browser.build.chunks.jsonl +35 -0
- package/.rush/temp/operation/build/all.log +35 -0
- package/.rush/temp/operation/build/log-chunks.jsonl +35 -0
- package/.rush/temp/operation/build/state.json +3 -0
- package/.rush/temp/shrinkwrap-deps.json +1217 -0
- package/README.md +95 -0
- package/TS_RES_BROWSER_PLAN.md +689 -0
- package/babel.config.js +17 -0
- package/config/jest.config.json +13 -0
- package/config/rig.json +16 -0
- package/dist/bundle.js +2 -0
- package/dist/bundle.js.LICENSE.txt +62 -0
- package/dist/index.html +1 -0
- package/package.json +78 -0
- package/postcss.config.js +3 -0
- package/public/index.html +15 -0
- package/rush-logs/ts-res-browser.build.cache.log +3 -0
- package/rush-logs/ts-res-browser.build.log +35 -0
- package/src/App.tsx +153 -0
- package/src/cli.ts +44 -0
- package/src/components/common/FileImporter.tsx +138 -0
- package/src/components/common/NavigationWarningModal.tsx +62 -0
- package/src/components/layout/AppLayout.tsx +46 -0
- package/src/components/layout/Header.tsx +22 -0
- package/src/components/layout/MessagesWindow.tsx +108 -0
- package/src/components/layout/Sidebar.tsx +92 -0
- package/src/components/tools/CompiledBrowser.tsx +949 -0
- package/src/components/tools/ConfigurationTool.tsx +1402 -0
- package/src/components/tools/FilterTool.tsx +1027 -0
- package/src/components/tools/ImportTool.tsx +246 -0
- package/src/components/tools/ResolutionViewer.tsx +1672 -0
- package/src/components/tools/SourceBrowser.tsx +496 -0
- package/src/hooks/useAppState.ts +107 -0
- package/src/hooks/useFileImport.ts +86 -0
- package/src/hooks/useNavigationWarning.ts +67 -0
- package/src/hooks/useResourceManager.ts +244 -0
- package/src/index.css +38 -0
- package/src/main.tsx +16 -0
- package/src/types/app.ts +62 -0
- package/src/types/fileSystemAccess.d.ts +94 -0
- package/src/utils/browserFileTreeAccessors.ts +245 -0
- package/src/utils/fileImport.ts +334 -0
- package/src/utils/filterResources.ts +677 -0
- package/src/utils/tsResIntegration.ts +467 -0
- package/tailwind.config.js +21 -0
- package/test-data/README.md +184 -0
- package/test-data/config-variations/README.md +64 -0
- package/test-data/config-variations/composition-terminology.json +112 -0
- package/test-data/config-variations/enterprise-complex.json +129 -0
- package/test-data/config-variations/gaming-app.json +87 -0
- package/test-data/config-variations/high-priority-language.json +65 -0
- package/test-data/config-variations/minimal-basic.json +37 -0
- package/test-data/config-variations/qualifier-default-values.json +71 -0
- package/test-data/config-variations/territory-first.json +68 -0
- package/test-data/config-variations/territory-hierarchy-test.json +31 -0
- package/test-data/config-variations/territory-hierarchy-unconstrained.json +32 -0
- package/test-data/default-matching-test/greeting.res.json +83 -0
- package/test-data/default-matching-test/only-defaults.res.json +48 -0
- package/test-data/sample-project/package.json +27 -0
- package/test-data/sample-project/src/resources/app-config.json +27 -0
- package/test-data/sample-project/src/resources/app.json +177 -0
- package/test-data/sample-project/src/resources/config/app.env=development.json +21 -0
- package/test-data/sample-project/src/resources/config/app.json +21 -0
- package/test-data/sample-project/src/resources/config/app.platform=mobile.json +23 -0
- package/test-data/sample-project/src/resources/feature-flags.json +23 -0
- package/test-data/sample-project/src/resources/home=CA/common.json +16 -0
- package/test-data/sample-project/src/resources/images/density=hdpi.json +29 -0
- package/test-data/sample-project/src/resources/images/home.json +29 -0
- package/test-data/sample-project/src/resources/images/logout.json +14 -0
- package/test-data/sample-project/src/resources/images/settings.json +14 -0
- package/test-data/sample-project/src/resources/images/ui-icons.json +29 -0
- package/test-data/sample-project/src/resources/images/user.density=hdpi.json +14 -0
- package/test-data/sample-project/src/resources/images/user.json +14 -0
- package/test-data/sample-project/src/resources/lang=en-US/common.json +15 -0
- package/test-data/sample-project/src/resources/language=en-CA/ui-terms.json +19 -0
- package/test-data/sample-project/src/resources/language=en-GB/ui-terms.json +30 -0
- package/test-data/sample-project/src/resources/language=fr-CA/ui-terms.json +25 -0
- package/test-data/sample-project/src/resources/language=nl-BE/ui-terms.json +17 -0
- package/test-data/sample-project/src/resources/region=europe/feature-flags.json +17 -0
- package/test-data/sample-project/src/resources/region=north-america/feature-flags.json +18 -0
- package/test-data/sample-project/src/resources/strings/dashboard.home=CA,language=fr.json +20 -0
- package/test-data/sample-project/src/resources/strings/dashboard.json +18 -0
- package/test-data/sample-project/src/resources/strings/dashboard.role=admin.json +23 -0
- package/test-data/sample-project/src/resources/strings/dashboard.role=user.json +21 -0
- package/test-data/sample-project/src/resources/strings/language=en-US.json +16 -0
- package/test-data/sample-project/src/resources/strings.json +78 -0
- package/test-data/sample-project/src/resources/territory=BE/app-config.json +19 -0
- package/test-data/sample-project/src/resources/territory=CA/app-config.json +21 -0
- package/test-data/sample-project/src/resources/territory=GB/app-config.json +25 -0
- package/test-data/sample-project/src/resources/territory=NL/app-config.json +25 -0
- package/test-data/sample-project/src/resources/ui-terms.json +96 -0
- package/test-data/sample-project/src/resources-config.json +111 -0
- package/tsconfig.json +27 -0
- package/webpack.config.js +54 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "territory-hierarchy-unconstrained",
|
|
3
|
+
"description": "Test configuration for unconstrained territory qualifier type with hierarchy (no allowedTerritories)",
|
|
4
|
+
"qualifierTypes": [
|
|
5
|
+
{
|
|
6
|
+
"name": "territory",
|
|
7
|
+
"systemType": "territory",
|
|
8
|
+
"configuration": {
|
|
9
|
+
"allowContextList": true,
|
|
10
|
+
"acceptLowercase": true,
|
|
11
|
+
"hierarchy": {
|
|
12
|
+
"PR": "US",
|
|
13
|
+
"VI": "US",
|
|
14
|
+
"GU": "US",
|
|
15
|
+
"AS": "US"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"qualifiers": [
|
|
21
|
+
{
|
|
22
|
+
"name": "territory",
|
|
23
|
+
"type": "territory"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"resourceTypes": [
|
|
27
|
+
{
|
|
28
|
+
"name": "message",
|
|
29
|
+
"qualifiers": ["territory"]
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "greeting",
|
|
3
|
+
"resourceType": "json",
|
|
4
|
+
"candidates": [
|
|
5
|
+
{
|
|
6
|
+
"json": {
|
|
7
|
+
"message": "Hello! (Regular Match)",
|
|
8
|
+
"type": "regular",
|
|
9
|
+
"context": "exact match for en-US/US"
|
|
10
|
+
},
|
|
11
|
+
"conditions": {
|
|
12
|
+
"language": "en-US",
|
|
13
|
+
"territory": "US"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"json": {
|
|
18
|
+
"message": "Hello! (Default Language Match)",
|
|
19
|
+
"type": "default-lang",
|
|
20
|
+
"context": "matches fr via default but territory exact"
|
|
21
|
+
},
|
|
22
|
+
"conditions": [
|
|
23
|
+
{
|
|
24
|
+
"qualifierName": "language",
|
|
25
|
+
"value": "fr",
|
|
26
|
+
"scoreAsDefault": 0.8
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"qualifierName": "territory",
|
|
30
|
+
"value": "US"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"json": {
|
|
36
|
+
"message": "Hello! (Default Territory Match)",
|
|
37
|
+
"type": "default-territory",
|
|
38
|
+
"context": "language exact but territory via default"
|
|
39
|
+
},
|
|
40
|
+
"conditions": [
|
|
41
|
+
{
|
|
42
|
+
"qualifierName": "language",
|
|
43
|
+
"value": "en-US"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"qualifierName": "territory",
|
|
47
|
+
"value": "CA",
|
|
48
|
+
"scoreAsDefault": 0.7
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"json": {
|
|
54
|
+
"message": "Hello! (Pure Default Match)",
|
|
55
|
+
"type": "pure-default",
|
|
56
|
+
"context": "both qualifiers match via defaults only"
|
|
57
|
+
},
|
|
58
|
+
"conditions": [
|
|
59
|
+
{
|
|
60
|
+
"qualifierName": "language",
|
|
61
|
+
"value": "de",
|
|
62
|
+
"scoreAsDefault": 0.6
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"qualifierName": "territory",
|
|
66
|
+
"value": "DE",
|
|
67
|
+
"scoreAsDefault": 0.5
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"json": {
|
|
73
|
+
"message": "Hello! (No Match)",
|
|
74
|
+
"type": "no-match",
|
|
75
|
+
"context": "should not match the test context"
|
|
76
|
+
},
|
|
77
|
+
"conditions": {
|
|
78
|
+
"language": "ja",
|
|
79
|
+
"territory": "JP"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "only-defaults",
|
|
3
|
+
"resourceType": "json",
|
|
4
|
+
"candidates": [
|
|
5
|
+
{
|
|
6
|
+
"json": {
|
|
7
|
+
"message": "Fallback French",
|
|
8
|
+
"priority": "high",
|
|
9
|
+
"type": "fallback-1"
|
|
10
|
+
},
|
|
11
|
+
"conditions": [
|
|
12
|
+
{
|
|
13
|
+
"qualifierName": "language",
|
|
14
|
+
"value": "fr",
|
|
15
|
+
"scoreAsDefault": 0.9
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"json": {
|
|
21
|
+
"message": "Fallback German",
|
|
22
|
+
"priority": "medium",
|
|
23
|
+
"type": "fallback-2"
|
|
24
|
+
},
|
|
25
|
+
"conditions": [
|
|
26
|
+
{
|
|
27
|
+
"qualifierName": "language",
|
|
28
|
+
"value": "de",
|
|
29
|
+
"scoreAsDefault": 0.8
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"json": {
|
|
35
|
+
"message": "Fallback Spanish",
|
|
36
|
+
"priority": "low",
|
|
37
|
+
"type": "fallback-3"
|
|
38
|
+
},
|
|
39
|
+
"conditions": [
|
|
40
|
+
{
|
|
41
|
+
"qualifierName": "language",
|
|
42
|
+
"value": "es",
|
|
43
|
+
"scoreAsDefault": 0.7
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ts-res-sample-project",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Sample project demonstrating ts-res resource management",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "ts-res-compile",
|
|
7
|
+
"dev": "ts-res-compile --watch",
|
|
8
|
+
"clean": "rimraf dist compiled"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@fgv/ts-res": "workspace:*",
|
|
12
|
+
"@fgv/ts-utils": "workspace:*"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@fgv/ts-res-cli": "workspace:*",
|
|
16
|
+
"rimraf": "^5.0.0"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"ts-res",
|
|
20
|
+
"resources",
|
|
21
|
+
"localization",
|
|
22
|
+
"i18n",
|
|
23
|
+
"configuration"
|
|
24
|
+
],
|
|
25
|
+
"author": "TS-RES Team",
|
|
26
|
+
"license": "MIT"
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"resources": {
|
|
3
|
+
"app-config": {
|
|
4
|
+
"resourceTypeName": "json",
|
|
5
|
+
"candidates": [
|
|
6
|
+
{
|
|
7
|
+
"json": {
|
|
8
|
+
"currency": "USD",
|
|
9
|
+
"dateFormat": "MM/DD/YYYY",
|
|
10
|
+
"timeFormat": "12h",
|
|
11
|
+
"numberFormat": "en-US",
|
|
12
|
+
"measurement": "imperial",
|
|
13
|
+
"phoneFormat": "+1 (###) ###-####",
|
|
14
|
+
"supportEmail": "support@example.com",
|
|
15
|
+
"supportPhone": "+1-800-555-0123",
|
|
16
|
+
"legalEntity": "Example Corp",
|
|
17
|
+
"privacyPolicy": "https://example.com/privacy",
|
|
18
|
+
"termsOfService": "https://example.com/terms"
|
|
19
|
+
},
|
|
20
|
+
"conditions": {
|
|
21
|
+
"territory": "US"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
{
|
|
2
|
+
"resources": {
|
|
3
|
+
"config": {
|
|
4
|
+
"resourceTypeName": "json",
|
|
5
|
+
"candidates": [
|
|
6
|
+
{
|
|
7
|
+
"json": {
|
|
8
|
+
"app_name": "Sample Application",
|
|
9
|
+
"version": "1.0.0",
|
|
10
|
+
"api_url": "https://api.example.com",
|
|
11
|
+
"timeout": 30000,
|
|
12
|
+
"max_retries": 3,
|
|
13
|
+
"debug": false,
|
|
14
|
+
"features": {
|
|
15
|
+
"authentication": true,
|
|
16
|
+
"notifications": true,
|
|
17
|
+
"analytics": true
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"json": {
|
|
23
|
+
"app_name": "Sample Application (DEV)",
|
|
24
|
+
"version": "1.0.0-dev",
|
|
25
|
+
"api_url": "https://dev-api.example.com",
|
|
26
|
+
"timeout": 10000,
|
|
27
|
+
"max_retries": 1,
|
|
28
|
+
"debug": true,
|
|
29
|
+
"features": {
|
|
30
|
+
"authentication": true,
|
|
31
|
+
"notifications": false,
|
|
32
|
+
"analytics": false
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"conditions": {
|
|
36
|
+
"env": "development"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"json": {
|
|
41
|
+
"app_name": "Sample Mobile App",
|
|
42
|
+
"version": "1.0.0",
|
|
43
|
+
"api_url": "https://mobile-api.example.com",
|
|
44
|
+
"timeout": 15000,
|
|
45
|
+
"max_retries": 2,
|
|
46
|
+
"debug": false,
|
|
47
|
+
"features": {
|
|
48
|
+
"authentication": true,
|
|
49
|
+
"notifications": true,
|
|
50
|
+
"analytics": true,
|
|
51
|
+
"offline_mode": true,
|
|
52
|
+
"push_notifications": true
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"conditions": {
|
|
56
|
+
"platform": "mobile"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"children": {
|
|
63
|
+
"ui": {
|
|
64
|
+
"resources": {
|
|
65
|
+
"dashboard": {
|
|
66
|
+
"resourceTypeName": "json",
|
|
67
|
+
"candidates": [
|
|
68
|
+
{
|
|
69
|
+
"json": {
|
|
70
|
+
"title": "Dashboard",
|
|
71
|
+
"overview": "Overview",
|
|
72
|
+
"stats": "Statistics",
|
|
73
|
+
"recent_activity": "Recent Activity",
|
|
74
|
+
"notifications": "Notifications",
|
|
75
|
+
"settings": "Settings",
|
|
76
|
+
"profile": "Profile",
|
|
77
|
+
"logout": "Logout"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"json": {
|
|
82
|
+
"title": "User Dashboard",
|
|
83
|
+
"overview": "My Overview",
|
|
84
|
+
"stats": "My Statistics",
|
|
85
|
+
"recent_activity": "My Recent Activity",
|
|
86
|
+
"notifications": "My Notifications",
|
|
87
|
+
"settings": "My Settings",
|
|
88
|
+
"profile": "My Profile",
|
|
89
|
+
"logout": "Sign Out",
|
|
90
|
+
"help": "Help & Support",
|
|
91
|
+
"tutorials": "Tutorials",
|
|
92
|
+
"account_info": "Account Information"
|
|
93
|
+
},
|
|
94
|
+
"conditions": {
|
|
95
|
+
"role": "user"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"json": {
|
|
100
|
+
"title": "Admin Dashboard",
|
|
101
|
+
"overview": "System Overview",
|
|
102
|
+
"stats": "System Statistics",
|
|
103
|
+
"recent_activity": "System Activity",
|
|
104
|
+
"notifications": "System Notifications",
|
|
105
|
+
"settings": "System Settings",
|
|
106
|
+
"profile": "Admin Profile",
|
|
107
|
+
"logout": "Admin Logout",
|
|
108
|
+
"user_management": "User Management",
|
|
109
|
+
"system_logs": "System Logs",
|
|
110
|
+
"monitoring": "System Monitoring",
|
|
111
|
+
"reports": "Reports",
|
|
112
|
+
"maintenance": "Maintenance Mode"
|
|
113
|
+
},
|
|
114
|
+
"conditions": {
|
|
115
|
+
"role": "admin"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"children": {
|
|
122
|
+
"icons": {
|
|
123
|
+
"resources": {
|
|
124
|
+
"home": {
|
|
125
|
+
"resourceTypeName": "json",
|
|
126
|
+
"candidates": [
|
|
127
|
+
{
|
|
128
|
+
"json": {
|
|
129
|
+
"path": "/assets/icons/home.svg",
|
|
130
|
+
"alt": "Home icon",
|
|
131
|
+
"width": 24,
|
|
132
|
+
"height": 24
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"json": {
|
|
137
|
+
"path": "/assets/icons/home@2x.svg",
|
|
138
|
+
"alt": "Home icon",
|
|
139
|
+
"width": 48,
|
|
140
|
+
"height": 48
|
|
141
|
+
},
|
|
142
|
+
"conditions": {
|
|
143
|
+
"density": "hdpi"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"user": {
|
|
149
|
+
"resourceTypeName": "json",
|
|
150
|
+
"candidates": [
|
|
151
|
+
{
|
|
152
|
+
"json": {
|
|
153
|
+
"path": "/assets/icons/user.svg",
|
|
154
|
+
"alt": "User icon",
|
|
155
|
+
"width": 24,
|
|
156
|
+
"height": 24
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"json": {
|
|
161
|
+
"path": "/assets/icons/user@2x.svg",
|
|
162
|
+
"alt": "User icon",
|
|
163
|
+
"width": 48,
|
|
164
|
+
"height": 48
|
|
165
|
+
},
|
|
166
|
+
"conditions": {
|
|
167
|
+
"density": "hdpi"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"candidates": [
|
|
3
|
+
{
|
|
4
|
+
"id": "app",
|
|
5
|
+
"resourceTypeName": "json",
|
|
6
|
+
"json": {
|
|
7
|
+
"app_name": "Sample Application (DEV)",
|
|
8
|
+
"version": "1.0.0-dev",
|
|
9
|
+
"api_url": "https://dev-api.example.com",
|
|
10
|
+
"timeout": 10000,
|
|
11
|
+
"max_retries": 1,
|
|
12
|
+
"debug": true,
|
|
13
|
+
"features": {
|
|
14
|
+
"authentication": true,
|
|
15
|
+
"notifications": false,
|
|
16
|
+
"analytics": false
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"candidates": [
|
|
3
|
+
{
|
|
4
|
+
"id": "app",
|
|
5
|
+
"resourceTypeName": "json",
|
|
6
|
+
"json": {
|
|
7
|
+
"app_name": "Sample Application",
|
|
8
|
+
"version": "1.0.0",
|
|
9
|
+
"api_url": "https://api.example.com",
|
|
10
|
+
"timeout": 30000,
|
|
11
|
+
"max_retries": 3,
|
|
12
|
+
"debug": false,
|
|
13
|
+
"features": {
|
|
14
|
+
"authentication": true,
|
|
15
|
+
"notifications": true,
|
|
16
|
+
"analytics": true
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"candidates": [
|
|
3
|
+
{
|
|
4
|
+
"id": "app",
|
|
5
|
+
"resourceTypeName": "json",
|
|
6
|
+
"json": {
|
|
7
|
+
"app_name": "Sample Mobile App",
|
|
8
|
+
"version": "1.0.0",
|
|
9
|
+
"api_url": "https://mobile-api.example.com",
|
|
10
|
+
"timeout": 15000,
|
|
11
|
+
"max_retries": 2,
|
|
12
|
+
"debug": false,
|
|
13
|
+
"features": {
|
|
14
|
+
"authentication": true,
|
|
15
|
+
"notifications": true,
|
|
16
|
+
"analytics": true,
|
|
17
|
+
"offline_mode": true,
|
|
18
|
+
"push_notifications": true
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"resources": {
|
|
3
|
+
"feature-flags": {
|
|
4
|
+
"resourceTypeName": "json",
|
|
5
|
+
"candidates": [
|
|
6
|
+
{
|
|
7
|
+
"json": {
|
|
8
|
+
"betaFeatures": false,
|
|
9
|
+
"advancedSearch": true,
|
|
10
|
+
"socialLogin": true,
|
|
11
|
+
"realTimeNotifications": true,
|
|
12
|
+
"darkMode": false,
|
|
13
|
+
"analytics": true,
|
|
14
|
+
"chatSupport": false,
|
|
15
|
+
"multiLanguage": true,
|
|
16
|
+
"adminPanel": false,
|
|
17
|
+
"apiAccess": false
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"candidates": [
|
|
3
|
+
{
|
|
4
|
+
"id": "common",
|
|
5
|
+
"resourceTypeName": "json",
|
|
6
|
+
"json": {
|
|
7
|
+
"welcome": "Welcome to Canada",
|
|
8
|
+
"hello": "Hello, eh!",
|
|
9
|
+
"goodbye": "Goodbye",
|
|
10
|
+
"timezone": "America/Toronto",
|
|
11
|
+
"currency": "CAD",
|
|
12
|
+
"measurement": "Metric"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"resources": [
|
|
3
|
+
{
|
|
4
|
+
"id": "logout.logout",
|
|
5
|
+
"resourceTypeName": "json",
|
|
6
|
+
"candidates": [
|
|
7
|
+
{
|
|
8
|
+
"json": {
|
|
9
|
+
"path": "/assets/icons/logout@2x.svg",
|
|
10
|
+
"alt": "Logout icon",
|
|
11
|
+
"width": 48,
|
|
12
|
+
"height": 48
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"candidates": [
|
|
19
|
+
{
|
|
20
|
+
"id": "settings.settings",
|
|
21
|
+
"json": {
|
|
22
|
+
"path": "/assets/icons/settings@2x.svg",
|
|
23
|
+
"alt": "Settings icon",
|
|
24
|
+
"width": 48,
|
|
25
|
+
"height": 48
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"resources": [
|
|
3
|
+
{
|
|
4
|
+
"id": "home",
|
|
5
|
+
"resourceTypeName": "json",
|
|
6
|
+
"candidates": [
|
|
7
|
+
{
|
|
8
|
+
"json": {
|
|
9
|
+
"path": "/assets/icons/home.svg",
|
|
10
|
+
"alt": "Home icon",
|
|
11
|
+
"width": 24,
|
|
12
|
+
"height": 24
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"json": {
|
|
17
|
+
"path": "/assets/icons/home@2x.svg",
|
|
18
|
+
"alt": "Home icon",
|
|
19
|
+
"width": 48,
|
|
20
|
+
"height": 48
|
|
21
|
+
},
|
|
22
|
+
"conditions": {
|
|
23
|
+
"density": "hdpi"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"resources": [
|
|
3
|
+
{
|
|
4
|
+
"id": "notification",
|
|
5
|
+
"resourceTypeName": "json",
|
|
6
|
+
"candidates": [
|
|
7
|
+
{
|
|
8
|
+
"json": {
|
|
9
|
+
"path": "/assets/icons/notification.svg",
|
|
10
|
+
"alt": "Notification icon",
|
|
11
|
+
"width": 24,
|
|
12
|
+
"height": 24
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"json": {
|
|
17
|
+
"path": "/assets/icons/notification@2x.svg",
|
|
18
|
+
"alt": "Notification icon",
|
|
19
|
+
"width": 48,
|
|
20
|
+
"height": 48
|
|
21
|
+
},
|
|
22
|
+
"conditions": {
|
|
23
|
+
"density": "hdpi"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"candidates": [
|
|
3
|
+
{
|
|
4
|
+
"id": "common",
|
|
5
|
+
"resourceTypeName": "json",
|
|
6
|
+
"json": {
|
|
7
|
+
"welcome": "Welcome to the United States version",
|
|
8
|
+
"hello": "Hello there",
|
|
9
|
+
"goodbye": "Goodbye",
|
|
10
|
+
"timezone": "America/New_York",
|
|
11
|
+
"measurement": "Imperial"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|