Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusef Almamari committed May 2, 2024
1 parent e402b2c commit 1e72358
Show file tree
Hide file tree
Showing 23 changed files with 73 additions and 211 deletions.
12 changes: 6 additions & 6 deletions asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"files": {
"main.css": "/citeease/static/css/main.53e40acc.css",
"main.js": "/citeease/static/js/main.9f663177.js",
"main.css": "/citeease/static/css/main.1fe0c195.css",
"main.js": "/citeease/static/js/main.0fa6b5ab.js",
"index.html": "/citeease/index.html",
"main.53e40acc.css.map": "/citeease/static/css/main.53e40acc.css.map",
"main.9f663177.js.map": "/citeease/static/js/main.9f663177.js.map"
"main.1fe0c195.css.map": "/citeease/static/css/main.1fe0c195.css.map",
"main.0fa6b5ab.js.map": "/citeease/static/js/main.0fa6b5ab.js.map"
},
"entrypoints": [
"static/css/main.53e40acc.css",
"static/js/main.9f663177.js"
"static/css/main.1fe0c195.css",
"static/js/main.0fa6b5ab.js"
]
}
Binary file modified favicon.ico
Binary file not shown.
Binary file added images/citeease-logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/citeease-logo.png
Binary file not shown.
Binary file modified images/favicons/android-chrome-192x192.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 modified images/favicons/android-chrome-512x512.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 modified images/favicons/apple-touch-icon.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 modified images/favicons/favicon-16x16.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 modified images/favicons/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
140 changes: 0 additions & 140 deletions images/favicons/safari-pinned-tab.svg

This file was deleted.

1 change: 1 addition & 0 deletions images/head.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/heart.svg
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 images/skeleton.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="description" content="Explore CiteEase, the open-source Progressive Web App (PWA) designed for effortless citation management. Enjoy a completely free and user-friendly experience, packed with a multitude of features to enhance your citation process. Simplify your academic or professional writing with CiteEase."/><meta name="theme-color" content="#ffd60a"/><title>CiteEase</title><link rel="canonical" href="https://discontinuedlabs.github.io/citeease/"/><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/><link href="https://fonts.googleapis.com/css?family=Material+Icons+Round" rel="stylesheet"/><link href="https://fonts.googleapis.com/css2?family=Cambo&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap" rel="stylesheet"/><link rel="manifest" href="/citeease/manifest.json"/><link rel="apple-touch-icon" sizes="180x180" href="/citeease/images/favicons/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/citeease/images/favicons/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/citeease/images/favicons/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#ffd60a"/><script defer="defer" src="/citeease/static/js/main.9f663177.js"></script><link href="/citeease/static/css/main.53e40acc.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="canonical" href="https://discontinuedlabs.github.io/citeease/"/><meta name="description" content="Effortlessly manage citations with CiteEase, the free, open-source Progressive Web App (PWA). Supercharge your academic or professional writing with a user-friendly interface and powerful features."/><title>CiteEase: Simplify Your Research Workflow</title><link rel="manifest" href="/citeease/manifest.json"/><link rel="apple-touch-icon" sizes="180x180" href="/citeease/images/favicons/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/citeease/images/favicons/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/citeease/images/favicons/favicon-16x16.png"/><meta name="theme-color" content="#ffffff"/><link rel="canonical" href="https://discontinuedlabs.github.io/citeease/"/><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/><link href="https://fonts.googleapis.com/css?family=Material+Icons+Round" rel="stylesheet"/><link href="https://fonts.googleapis.com/css2?family=Cambo&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap" rel="stylesheet"/><script defer="defer" src="/citeease/static/js/main.0fa6b5ab.js"></script><link href="/citeease/static/css/main.1fe0c195.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>navigator.serviceWorker&&navigator.serviceWorker.register("/citeease/service-worker.js",{scope:"/citeease/"})</script></body></html>
8 changes: 4 additions & 4 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"short_name": "CiteEase",
"name": "CiteEase",
"description": "Explore CiteEase, the open-source Progressive Web App (PWA) designed for effortless citation management. Enjoy a completely free and user-friendly experience, packed with a multitude of features to enhance your citation process. Simplify your academic or professional writing with CiteEase.",
"name": "CiteEase: Simplify Your Research Workflow",
"description": "Effortlessly manage citations with CiteEase, the free, open-source Progressive Web App (PWA). Supercharge your academic or professional writing with a user-friendly interface and powerful features.",
"icons": [
{
"src": "/citeease/favicon.ico",
Expand All @@ -21,6 +21,6 @@
],
"start_url": ".",
"display": "standalone",
"theme_color": "#ffd60a",
"background_color": "#ffd60a"
"theme_color": "#ffffff",
"background_color": "#ffffff"
}
106 changes: 53 additions & 53 deletions service-worker.js
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
var APP_PREFIX = 'CiteEase_' // Identifier for this app (this needs to be consistent across every cache update)
var VERSION = 'version_01' // Version of the off-line cache (change this value everytime you want to update cache)
var CACHE_NAME = APP_PREFIX + VERSION
var URLS = [ // Add URL you want to cache in this list.
'/citeease/', // If you have separate JS/CSS files,
'/citeease/index.html', // add path to those files here
"/citeease/static/js/main.chunk.js",
"/citeease/static/js/0.chunk.js",
"/citeease/static/js/bundle.js",
]
var APP_PREFIX = "citeease-";
var VERSION = "v1";
var CACHE_NAME = APP_PREFIX + VERSION;
var URLS = ["/citeease/", "/citeease/index.html", "/citeease/static/js/bundle.js", "/citeease/manifest.json"];

var self = this;

// Respond with cached resources
self.addEventListener('fetch', function (e) {
console.log('fetch request : ' + e.request.url)
e.respondWith(
caches.match(e.request).then(function (request) {
if (request) { // if cache is available, respond with cache
console.log('responding with cache : ' + e.request.url)
return request
} else { // if there are no cache, try fetching request
console.log('file is not cached, fetching : ' + e.request.url)
return fetch(e.request)
}
self.addEventListener("fetch", function (event) {
console.log("fetch request : " + event.request.url);
event.respondWith(
caches.match(event.request).then(function (request) {
if (request) {
// if cache is available, respond with cache
console.log("responding with cache : " + event.request.url);
return request;
} else {
// if there are no cache, try fetching request
console.log("file is not cached, fetching : " + event.request.url);
return fetch(event.request);
}

// You can omit if/else for console.log & put one line below like this too.
// return request || fetch(e.request)
})
)
})
// You can omit if/else for console.log & put one line below like this too.
// return request || fetch(e.request)
})
);
});

// Cache resources
self.addEventListener('install', function (e) {
e.waitUntil(
caches.open(CACHE_NAME).then(function (cache) {
console.log('installing cache : ' + CACHE_NAME)
return cache.addAll(URLS)
})
)
})
self.addEventListener("install", function (event) {
event.waitUntil(
caches.open(CACHE_NAME).then(function (cache) {
console.log("installing cache : " + CACHE_NAME);
return cache.addAll(URLS);
})
);
});

// Delete outdated caches
self.addEventListener('activate', function (e) {
e.waitUntil(
caches.keys().then(function (keyList) {
// `keyList` contains all cache names under your username.github.io
// filter out ones that has this app prefix to create white list
var cacheWhitelist = keyList.filter(function (key) {
return key.indexOf(APP_PREFIX)
})
// add current cache name to white list
cacheWhitelist.push(CACHE_NAME)
self.addEventListener("activate", function (event) {
event.waitUntil(
caches.keys().then(function (keyList) {
// `keyList` contains all cache names under your username.github.io
// filter out ones that has this app prefix to create white list
var cacheWhitelist = keyList.filter(function (key) {
return key.indexOf(APP_PREFIX);
});
// add current cache name to white list
cacheWhitelist.push(CACHE_NAME);

return Promise.all(keyList.map(function (key, i) {
if (cacheWhitelist.indexOf(key) === -1) {
console.log('deleting cache : ' + keyList[i] )
return caches.delete(keyList[i])
}
}))
})
)
})
return Promise.all(
keyList.map(function (key, index) {
if (cacheWhitelist.indexOf(key) === -1) {
console.log("deleting cache : " + keyList[index]);
return caches.delete(keyList[index]);
}
})
);
})
);
});
Loading

0 comments on commit 1e72358

Please sign in to comment.