Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animated heart loader for devs page #346

Open
wants to merge 40 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
fa5e25c
Add John Lester D. Necesito details
Zacharias02 Feb 14, 2021
346168b
Release new version
joshuadeguzman Feb 10, 2021
52ee034
Add username
mgcarpizo Feb 10, 2021
7fd537e
Resolved merge conflict by using current data.
mgcarpizo Feb 14, 2021
9648f52
Removed duplicate files
mgcarpizo Feb 14, 2021
d460ab1
Refactor search future
OliverRhyme Feb 14, 2021
cf411aa
Change search bar hint
OliverRhyme Feb 14, 2021
9efc51c
Fix dev page bug where the page is stuck in loading when switching fr…
OliverRhyme Feb 14, 2021
11392ba
Revert initializing devBoardModel on didChangeDependencies
OliverRhyme Feb 15, 2021
59e8ec5
Revert to using MultiProvider
OliverRhyme Feb 15, 2021
03720b5
Revert SearchBar hint
OliverRhyme Feb 15, 2021
c4b12d5
Add custom loader on dashboard page
mgcarpizo Feb 17, 2021
dec1d1f
add paul cedo to details dev board
paulcedo Feb 20, 2021
9c89f7f
Added heart loader
mgcarpizo Feb 21, 2021
430b82f
Add Portia Bumanlag Details
MapleSyyrup Feb 22, 2021
fb0ea35
Add Jaymon Rivera details
Feb 23, 2021
000f750
Merge branch 'master' into 340/JaymonRivera
joshuadeguzman Feb 23, 2021
a2ffc2c
docs: update README.md [skip ci]
allcontributors[bot] Feb 23, 2021
a0ce67d
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Feb 23, 2021
7badf5b
Merge pull request #355 from JackofAllTradesDev/340/JaymonRivera
joshuadeguzman Feb 23, 2021
578ec3c
Merge pull request #356 from flutterph/all-contributors/add-JackofAll…
joshuadeguzman Feb 23, 2021
3eddbe8
Merge pull request #353 from MapleSyyrup/352/PortiaBumanlag
joshuadeguzman Feb 23, 2021
3051f65
Merge pull request #302 from OliverRhyme/search
joshuadeguzman Feb 23, 2021
0570e2b
docs: update README.md [skip ci]
allcontributors[bot] Feb 23, 2021
edb24a8
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Feb 23, 2021
95dc145
Merge pull request #357 from flutterph/all-contributors/add-OliverRhyme
joshuadeguzman Feb 23, 2021
28383a4
Merge branch 'master' into 290/Zacharias02
joshuadeguzman Feb 23, 2021
22184ed
Merge pull request #291 from Zacharias02/290/Zacharias02
joshuadeguzman Feb 23, 2021
cae782d
docs: update README.md [skip ci]
allcontributors[bot] Feb 23, 2021
03b0ff6
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Feb 23, 2021
add0511
Merge pull request #358 from flutterph/all-contributors/add-Zacharias02
joshuadeguzman Feb 23, 2021
e69baaf
Merge branch 'master' into master
joshuadeguzman Feb 23, 2021
6680bf2
Merge pull request #343 from paulcedo/master
joshuadeguzman Feb 23, 2021
9949bb8
docs: update README.md [skip ci]
allcontributors[bot] Feb 23, 2021
0f312b9
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Feb 23, 2021
6e28cd9
Merge pull request #359 from flutterph/all-contributors/add-paulcedo
joshuadeguzman Feb 23, 2021
f1bf30e
BUG: fix missing bracket
vinceramcesoliveros Feb 25, 2021
3a43553
Release new version
joshuadeguzman Feb 10, 2021
e8ddb5c
Rebased and added loader
mgcarpizo Feb 27, 2021
5c38257
Merge branch '345/mgcarpizo' of https://github.com/mgcarpizo/devs int…
mgcarpizo Feb 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .last_build_id
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2c8c0016e18d4544ee4991351fe1d0ad
1 change: 1 addition & 0 deletions assets/AssetManifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"assets/data/devs.json":["assets/data/devs.json"],"assets/logos/logo.png":["assets/logos/logo.png"],"packages/cupertino_icons/assets/CupertinoIcons.ttf":["packages/cupertino_icons/assets/CupertinoIcons.ttf"]}
1 change: 1 addition & 0 deletions assets/FontManifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.otf"}]},{"family":"packages/cupertino_icons/CupertinoIcons","fonts":[{"asset":"packages/cupertino_icons/assets/CupertinoIcons.ttf"}]}]
15,549 changes: 15,549 additions & 0 deletions assets/NOTICES

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion assets/data/devs.json
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,13 @@
"roles": [
"Flutter Developer PH Community Member"
],
"about": "Flutter Tinkerer"
"about": "Flutter Tinkerer",
"username": "mgcarpizo",
"socials": {
"twitter": "https://twitter.com/mgcarpizoCODES",
"facebook": "https://www.facebook.com/mgcarpizo",
"linkedin": "https://www.linkedin.com/in/mgcarpizo"
}
},
{
"name": "Zaldy O. Pagaduan Jr.",
Expand Down
Binary file added assets/fonts/MaterialIcons-Regular.otf
Binary file not shown.
Binary file not shown.
Binary file added favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
192 changes: 192 additions & 0 deletions flutter_service_worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
'use strict';
const MANIFEST = 'flutter-app-manifest';
const TEMP = 'flutter-temp-cache';
const CACHE_NAME = 'flutter-app-cache';
const RESOURCES = {
"assets/assets/logos/logo.png": "51a28f7c0f5e614e54dfb96c605831da",
"assets/assets/data/devs.json": "c808e6187d20dee7851805e0b17f7ffa",
"assets/NOTICES": "fd1edd614b3464aca8cb626439ff1e44",
"assets/AssetManifest.json": "da356d40117491b4fc025b97a315f0c1",
"assets/fonts/MaterialIcons-Regular.otf": "1288c9e28052e028aba623321f7826ac",
"assets/packages/cupertino_icons/assets/CupertinoIcons.ttf": "b14fcf3ee94e3ace300b192e9e7c8c5d",
"assets/FontManifest.json": "dc3d03800ccca4601324923c0b1d6d57",
"version.json": "c353fa3b33dca7b412d68661c94baecb",
"manifest.json": "46c4ceb4eabd29c1eae96e131ab8a002",
"index.html": "bbfa94a15311548af6510cb20e60ef0b",
"/": "bbfa94a15311548af6510cb20e60ef0b",
"favicon.png": "5dcef449791fa27946b3d35ad8803796",
"main.dart.js": "f0690c396fc417ff83a746c14562e52e",
"icons/Icon-192.png": "ac9a721a12bbc803b44f645561ecb1e1",
"icons/Icon-512.png": "96e752610906ba2a93c65f8abe1645f1"
};

// The application shell files that are downloaded before a service worker can
// start.
const CORE = [
"/",
"main.dart.js",
"index.html",
"assets/NOTICES",
"assets/AssetManifest.json",
"assets/FontManifest.json"];
// During install, the TEMP cache is populated with the application shell files.
self.addEventListener("install", (event) => {
self.skipWaiting();
return event.waitUntil(
caches.open(TEMP).then((cache) => {
return cache.addAll(
CORE.map((value) => new Request(value + '?revision=' + RESOURCES[value], {'cache': 'reload'})));
})
);
});

// During activate, the cache is populated with the temp files downloaded in
// install. If this service worker is upgrading from one with a saved
// MANIFEST, then use this to retain unchanged resource files.
self.addEventListener("activate", function(event) {
return event.waitUntil(async function() {
try {
var contentCache = await caches.open(CACHE_NAME);
var tempCache = await caches.open(TEMP);
var manifestCache = await caches.open(MANIFEST);
var manifest = await manifestCache.match('manifest');
// When there is no prior manifest, clear the entire cache.
if (!manifest) {
await caches.delete(CACHE_NAME);
contentCache = await caches.open(CACHE_NAME);
for (var request of await tempCache.keys()) {
var response = await tempCache.match(request);
await contentCache.put(request, response);
}
await caches.delete(TEMP);
// Save the manifest to make future upgrades efficient.
await manifestCache.put('manifest', new Response(JSON.stringify(RESOURCES)));
return;
}
var oldManifest = await manifest.json();
var origin = self.location.origin;
for (var request of await contentCache.keys()) {
var key = request.url.substring(origin.length + 1);
if (key == "") {
key = "/";
}
// If a resource from the old manifest is not in the new cache, or if
// the MD5 sum has changed, delete it. Otherwise the resource is left
// in the cache and can be reused by the new service worker.
if (!RESOURCES[key] || RESOURCES[key] != oldManifest[key]) {
await contentCache.delete(request);
}
}
// Populate the cache with the app shell TEMP files, potentially overwriting
// cache files preserved above.
for (var request of await tempCache.keys()) {
var response = await tempCache.match(request);
await contentCache.put(request, response);
}
await caches.delete(TEMP);
// Save the manifest to make future upgrades efficient.
await manifestCache.put('manifest', new Response(JSON.stringify(RESOURCES)));
return;
} catch (err) {
// On an unhandled exception the state of the cache cannot be guaranteed.
console.error('Failed to upgrade service worker: ' + err);
await caches.delete(CACHE_NAME);
await caches.delete(TEMP);
await caches.delete(MANIFEST);
}
}());
});

// The fetch handler redirects requests for RESOURCE files to the service
// worker cache.
self.addEventListener("fetch", (event) => {
if (event.request.method !== 'GET') {
return;
}
var origin = self.location.origin;
var key = event.request.url.substring(origin.length + 1);
// Redirect URLs to the index.html
if (key.indexOf('?v=') != -1) {
key = key.split('?v=')[0];
}
if (event.request.url == origin || event.request.url.startsWith(origin + '/#') || key == '') {
key = '/';
}
// If the URL is not the RESOURCE list then return to signal that the
// browser should take over.
if (!RESOURCES[key]) {
return;
}
// If the URL is the index.html, perform an online-first request.
if (key == '/') {
return onlineFirst(event);
}
event.respondWith(caches.open(CACHE_NAME)
.then((cache) => {
return cache.match(event.request).then((response) => {
// Either respond with the cached resource, or perform a fetch and
// lazily populate the cache.
return response || fetch(event.request).then((response) => {
cache.put(event.request, response.clone());
return response;
});
})
})
);
});

self.addEventListener('message', (event) => {
// SkipWaiting can be used to immediately activate a waiting service worker.
// This will also require a page refresh triggered by the main worker.
if (event.data === 'skipWaiting') {
self.skipWaiting();
return;
}
if (event.data === 'downloadOffline') {
downloadOffline();
return;
}
});

// Download offline will check the RESOURCES for all files not in the cache
// and populate them.
async function downloadOffline() {
var resources = [];
var contentCache = await caches.open(CACHE_NAME);
var currentContent = {};
for (var request of await contentCache.keys()) {
var key = request.url.substring(origin.length + 1);
if (key == "") {
key = "/";
}
currentContent[key] = true;
}
for (var resourceKey of Object.keys(RESOURCES)) {
if (!currentContent[resourceKey]) {
resources.push(resourceKey);
}
}
return contentCache.addAll(resources);
}

// Attempt to download the resource online before falling back to
// the offline cache.
function onlineFirst(event) {
return event.respondWith(
fetch(event.request).then((response) => {
return caches.open(CACHE_NAME).then((cache) => {
cache.put(event.request, response.clone());
return response;
});
}).catch((error) => {
return caches.open(CACHE_NAME).then((cache) => {
return cache.match(event.request).then((response) => {
if (response != null) {
return response;
}
throw error;
});
});
})
);
}
Binary file added icons/Icon-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Icon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html>
<head>
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.

The path provided below has to start and end with a slash "/" in order for
it to work correctly.

Fore more details:
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
-->
<base href="/">

<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="A new Flutter project.">

<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="devs">
<link rel="apple-touch-icon" href="icons/Icon-192.png">

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

<title>devs</title>
<link rel="manifest" href="manifest.json">
</head>
<body>
<!-- This script installs service_worker.js to provide PWA functionality to
application. For more information, see:
https://developers.google.com/web/fundamentals/primers/service-workers -->
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('flutter-first-frame', function () {
navigator.serviceWorker.register('flutter_service_worker.js?v=292505131');
});
}
</script>
<script src="main.dart.js" type="application/javascript"></script>
</body>
</html>
Loading