Skip to content

Commit 37135c4

Browse files
authored
42 content visual editor (#48)
1 parent ad2e077 commit 37135c4

File tree

124 files changed

+2748
-1332
lines changed

Some content is hidden

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

124 files changed

+2748
-1332
lines changed

angular.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"src/favicon-16x16.png",
3535
"src/favicon-32x32.png",
3636
"src/site.webmanifest",
37-
"src/assets"
37+
"src/assets",
38+
"src/scripts"
3839
],
3940
"styles": [
4041
"src/styles.scss"

cloudbuild.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@ steps:
2424
- 'LOCALESS_AUTH_PROVIDERS=${_LOCALESS_AUTH_PROVIDERS}'
2525
# deploy to firebase
2626
- name: gcr.io/$PROJECT_ID/firebase
27-
id: 'deploy'
27+
id: 'firebase-deploy'
2828
args: [ 'deploy', '--project=$PROJECT_ID', '--only=hosting,functions,storage,firestore', '--force' ]
29+
- name: 'gcr.io/cloud-builders/gsutil'
30+
id: 'gsutil-cors'
31+
args: [ 'cors', 'set', 'cors.json', 'gs://${_LOCALESS_FIREBASE_STORAGE_BUCKET}']

cors.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[
2+
{
3+
"origin": ["*"],
4+
"method": ["GET", "HEAD"],
5+
"maxAgeSeconds": 3600
6+
}
7+
]

firestore.rules

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,19 @@ service cloud.firestore {
5959
allow delete: if isSignedIn() && (hasRole('admin') || hasPermission('ASSET_DELETE'));
6060
}
6161

62-
// Assets
62+
// Tasks
6363
match /tasks/{taskId} {
6464
allow read: if isSignedIn() && (hasRole('admin') || hasAnyPermission(['ASSET_IMPORT','ASSET_EXPORT','CONTENT_IMPORT','CONTENT_EXPORT','SCHEMA_IMPORT','SCHEMA_EXPORT','TRANSLATION_IMPORT','TRANSLATION_EXPORT']));
6565
allow create: if isSignedIn() && (hasRole('admin') || hasAnyPermission(['ASSET_IMPORT','ASSET_EXPORT','CONTENT_IMPORT','CONTENT_EXPORT','SCHEMA_IMPORT','SCHEMA_EXPORT','TRANSLATION_IMPORT','TRANSLATION_EXPORT']));
6666
allow update: if isSignedIn() && (hasRole('admin') || hasAnyPermission(['ASSET_IMPORT','ASSET_EXPORT','CONTENT_IMPORT','CONTENT_EXPORT','SCHEMA_IMPORT','SCHEMA_EXPORT','TRANSLATION_IMPORT','TRANSLATION_EXPORT']));
6767
allow delete: if isSignedIn() && (hasRole('admin') || hasAnyPermission(['ASSET_IMPORT','ASSET_EXPORT','CONTENT_IMPORT','CONTENT_EXPORT','SCHEMA_IMPORT','SCHEMA_EXPORT','TRANSLATION_IMPORT','TRANSLATION_EXPORT']));
6868
}
69+
70+
// Tokens
71+
match /tokens/{tokenId} {
72+
allow read: if isSignedIn() && (hasRole('admin') || hasPermission('SPACE_MANAGEMENT'));
73+
allow write: if isSignedIn() && (hasRole('admin') || hasPermission('SPACE_MANAGEMENT'));
74+
}
6975
}
7076

7177
// Users

0 commit comments

Comments
 (0)