north-star / commit
refactoring folder organization
database.rules.json => config/firebase/database.rules.json | 0
.../firebase-realtime-database-view.png | Bin
package.json | 2 +-
readme.md | 4 ++--
src/{ => assets}/compass.png | Bin
src/{ => assets}/image.png | Bin
src/index.html | 8 ++++----
src/style.css | 6 +++---
8 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/database.rules.json b/config/firebase/database.rules.json
similarity index 100%
rename from database.rules.json
rename to config/firebase/database.rules.json
diff --git a/firebase-realtime-database-view.png b/docs/firebase-realtime-database-view.png
similarity index 100%
rename from firebase-realtime-database-view.png
rename to docs/firebase-realtime-database-view.png
diff --git a/package.json b/package.json
index f35100d..83a97ed 100644
--- a/package.json
+++ b/package.json
@@ -20,4 +20,4 @@
"vite": "^5.4.19",
"vite-plugin-checker": "^0.12.0"
}
-}
\ No newline at end of file
+}
diff --git a/readme.md b/readme.md
index 1a3a948..1423991 100644
--- a/readme.md
+++ b/readme.md
@@ -84,13 +84,13 @@ Ideas worth tracking (not implemented yet):
### Firebase database rules
-This repo includes Realtime Database security rules in [database.rules.json](database.rules.json).
+This repo includes Realtime Database security rules in [config/firebase/database.rules.json](config/firebase/database.rules.json).
Before sharing the app publicly, add these rules in Firebase Console:
1. Navigate to [Firebase Console](https://console.firebase.google.com/) and select your project.
2. Open Firebase Console -> your project -> Realtime Database -> Rules.
-3. Replace the current rules with the contents of [database.rules.json](database.rules.json).
+3. Replace the current rules with the contents of [config/firebase/database.rules.json](config/firebase/database.rules.json).
4. Publish the rules.
Without these rules, your database may allow unsafe writes.
diff --git a/src/compass.png b/src/assets/compass.png
similarity index 100%
rename from src/compass.png
rename to src/assets/compass.png
diff --git a/src/image.png b/src/assets/image.png
similarity index 100%
rename from src/image.png
rename to src/assets/image.png
diff --git a/src/index.html b/src/index.html
index c7a65f8..b646024 100644
--- a/src/index.html
+++ b/src/index.html
@@ -19,16 +19,16 @@
<meta name="description"
content="Friend Compass shows live arrows pointing toward your friends. No account needed, end-to-end encrypted, works on any phone." />
- <link rel="icon" href="./compass.png" />
+ <link rel="icon" href="./assets/compass.png" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<p class="app-title">
- <a href="https://gitlab.com/PavelSafronov/north-star/-/blob/main/readme.md" target="_blank" rel="noopener noreferrer"
- aria-label="Open project README">
- <img src="compass.png" alt="Compass icon" class="app-icon" />
+ <a href="https://gitlab.com/PavelSafronov/north-star/-/blob/main/readme.md" target="_blank"
+ rel="noopener noreferrer" aria-label="Open project README">
+ <img src="assets/compass.png" alt="Compass icon" class="app-icon" />
</a>
<a id="app-title-link" href="https://pavelsafronov.gitlab.io/north-star/">Friend Compass</a>
</p>
diff --git a/src/style.css b/src/style.css
index 4fbc8be..f006db6 100644
--- a/src/style.css
+++ b/src/style.css
@@ -364,7 +364,7 @@ body.clean-mode .controls-row-main {
gap: 0;
}
-body.clean-mode .controls-row-main > :not(.clean-mode-toggle),
+body.clean-mode .controls-row-main> :not(.clean-mode-toggle),
body.clean-mode .controls-row-secondary {
display: none !important;
}
@@ -624,8 +624,8 @@ body.clean-mode .arrow {
height: 100%;
background-color: currentColor;
background-image: none;
- -webkit-mask-image: url('./image.png');
- mask-image: url('./image.png');
+ -webkit-mask-image: url('./assets/image.png');
+ mask-image: url('./assets/image.png');
-webkit-mask-size: contain;
mask-size: contain;
-webkit-mask-repeat: no-repeat;