Skip to content

Commit

Permalink
chore: host on firebase
Browse files Browse the repository at this point in the history
Hosted web build on firebase
Hosting URL is https://taskweaver-front.web.app
  • Loading branch information
jjoonleo committed Jan 5, 2024
1 parent aed16e8 commit 3362a0a
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 5 deletions.
26 changes: 26 additions & 0 deletions front/.firebase/hosting.YnVpbGQvd2Vi.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
favicon.png,1704385146078,fcc7c4545d5b62ad01682589e6fdc7ea03d0a3b42069963c815c344b632eb5cf
index.html,1704388877515,cac322b8c0ab577521a86b23e48efbda9db6ae7b9ba33217fd367523bbfffccd
manifest.json,1704385146079,1b16db9c2dec27440f1f254834023fdee342cfaa0c021b4f7ef2fe6172f6d568
version.json,1704388876250,ce261c1768961df50ee4c7c08310907f7af565fdba240f5a53aaad3da16669b1
assets/AssetManifest.bin.json,1704388876332,b081d355f99f48161a0add550237deed14875c6917625667b34f14d4c5410f0d
assets/AssetManifest.bin,1704388876331,9ef9b27e7c96c8fadc8a13de19a85fa9215df313ace5800c79782fa573ab6bb4
flutter_service_worker.js,1704388878042,60a6be761159ba3266bd28917044298d9e8db420e6990ba103aacf83b9abd03b
assets/packages/cupertino_icons/assets/CupertinoIcons.ttf,1704388877508,53ea433b22c061859c03c35b908eef1e49786ab0ec09bf1e01df03a5df5397ea
assets/AssetManifest.json,1704388876331,e1765baf5f9582d7f51cb137538999d143b3054c36c13a0eecaa940b3079e566
assets/fonts/MaterialIcons-Regular.otf,1704388877509,8d665c7b6f45b8525c6886c0b5f7d1cc420998132e00767401bdfa0fa256ec2c
assets/FontManifest.json,1704388876332,9ea504185602e57d97b7c3517d382b8627a13c0181c490c96a9b55a5d5c8810c
flutter.js,1704388857081,4ce6015fec2b419cefbf1222b977f169be64e9036f722f1405e0f178e6025fe0
assets/shaders/ink_sparkle.frag,1704388876694,62c36b32f67b76a3eb26439167a58be81631592706c55fde8956e32661d1b9f1
icons/Icon-192.png,1704385146078,d2e0131bb7851eb9d98f7885edb5ae4b4d6b7a6c7addf8a25b9b712b39274c0f
icons/Icon-maskable-192.png,1704385146079,dd96c123fdf6817cdf7e63d9693bcc246bac2e3782a41a6952fa41c0617c5573
icons/Icon-512.png,1704385146078,7a31ce91e554f1941158ca46f31c7f3f2b7c8c129229ea74a8fae1affe335033
canvaskit/skwasm.worker.js,1702959026000,d480228d9a755f2a0b3c3ff0c171ade188993bfc427eb3489790ee4db93ecb60
icons/Icon-maskable-512.png,1704385146079,e7983524dc70254adc61764657d7e03d19284de8da586b5818d737bc08c6d14e
canvaskit/canvaskit.js,1702958876000,385293d6197873e296c6b4ce320bb5dd301f07d2f77b93bbf0aff5b2a5efcdbf
canvaskit/skwasm.js,1702959026000,3e9442f556491c85546f535c104c7e529b9636e3c68719f27b1712129a0c2302
canvaskit/chromium/canvaskit.js,1702958938000,dd8792ae84119f9ec24a401f5d67dc84980ea8e316d997568658c3d0e3f15427
assets/NOTICES,1704388876332,b1ec7d9e84be0ab15e0f53b9cb6f44f71d603d3dfe6f6ec87a7bf511310654db
main.dart.js,1704388875756,bdc24bfb2889dda5febc517d25a9bff351dd69290d306bbbfd23cadc43bffbc8
canvaskit/skwasm.wasm,1702959020000,b4516c35ac7a768692e1deef6986788c2596490a35d149f59bb8e36a39fa603f
canvaskit/chromium/canvaskit.wasm,1702958928000,66728ac34d727c953c0f35146330d3f5d16df0bf1a74d83550296158ad1fa9f8
canvaskit/canvaskit.wasm,1702958866000,454f77c35bd5ea31039bdca775a3717e0c3ad67d3b49fd58976007f0a4634f7c
5 changes: 5 additions & 0 deletions front/.firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "taskweaver-front"
}
}
16 changes: 16 additions & 0 deletions front/firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "build/web",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
36 changes: 31 additions & 5 deletions front/web/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html>

<head>
<!--
If you are serving your web app in a path other than the root, change the
Expand Down Expand Up @@ -27,7 +28,7 @@
<link rel="apple-touch-icon" href="icons/Icon-192.png">

<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png"/>
<link rel="icon" type="image/png" href="favicon.png" />

<title>front</title>
<link rel="manifest" href="manifest.json">
Expand All @@ -39,20 +40,45 @@
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head>

<body>
<script>
window.addEventListener('load', function(ev) {
window.addEventListener('load', function (ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
}
}).then(function(engineInitializer) {
}).then(function (engineInitializer) {
return engineInitializer.initializeEngine();
}).then(function(appRunner) {
}).then(function (appRunner) {
return appRunner.runApp();
});
});
</script>
<script type="module">
// Import the functions you need from the SDKs you need
import { initializeApp } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-app.js";
import { getAnalytics } from "https://www.gstatic.com/firebasejs/10.7.1/firebase-analytics.js";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries

// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyAjd1u56S42yisxaPCwVuZuwywAahf-o28",
authDomain: "taskweaver-front.firebaseapp.com",
projectId: "taskweaver-front",
storageBucket: "taskweaver-front.appspot.com",
messagingSenderId: "262905385515",
appId: "1:262905385515:web:efbdb971a9c3d64382906e",
measurementId: "G-LBZ5B7SYRL"
};

// Initialize Firebase
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);
</script>
</body>
</html>

</html>

0 comments on commit 3362a0a

Please sign in to comment.