-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revise Ruff and Prettier formatting options; fix RQ job
- Loading branch information
Showing
14 changed files
with
94 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Hasgeek code style config | ||
root = True | ||
|
||
# For all files | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
max_line_length = 88 | ||
tab_width = 8 | ||
trim_trailing_whitespace = true | ||
|
||
# Python code | ||
[*.py] | ||
indent_size = 4 | ||
|
||
# Makefile | ||
[Makefile] | ||
indent_style = tab | ||
indent_size = tab | ||
|
||
# Markdown | ||
[*.{md,md.jinja2}] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
**/*.md |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
importScripts( | ||
'https://unpkg.com/[email protected]/build/importScripts/workbox-sw.prod.v2.1.2.js' | ||
'https://unpkg.com/[email protected]/build/importScripts/workbox-sw.prod.v2.1.2.js', | ||
); | ||
|
||
const workboxSW = new self.WorkboxSW({ | ||
|
@@ -15,7 +15,7 @@ workboxSW.router.registerRoute( | |
workboxSW.strategies.networkFirst({ | ||
cacheName: 'assets', | ||
}), | ||
'GET' | ||
'GET', | ||
); | ||
|
||
//For development setup caching of assets | ||
|
@@ -24,63 +24,63 @@ workboxSW.router.registerRoute( | |
workboxSW.strategies.networkFirst({ | ||
cacheName: 'baseframe-local', | ||
}), | ||
'GET' | ||
'GET', | ||
); | ||
|
||
workboxSW.router.registerRoute( | ||
/^https?\:\/\/ajax.googleapis.com\/*/, | ||
workboxSW.strategies.networkFirst({ | ||
cacheName: 'cdn-libraries', | ||
}), | ||
'GET' | ||
'GET', | ||
); | ||
|
||
workboxSW.router.registerRoute( | ||
/^https?:\/\/cdnjs.cloudflare.com\/*/, | ||
workboxSW.strategies.networkFirst({ | ||
cacheName: 'cdn-libraries', | ||
}), | ||
'GET' | ||
'GET', | ||
); | ||
|
||
workboxSW.router.registerRoute( | ||
/^https?:\/\/images\.hasgeek\.com\/embed\/file\/*/, | ||
workboxSW.strategies.networkFirst({ | ||
cacheName: 'images', | ||
}), | ||
'GET' | ||
'GET', | ||
); | ||
|
||
workboxSW.router.registerRoute( | ||
/^https?:\/\/hasgeek.com\/*/, | ||
workboxSW.strategies.networkFirst({ | ||
cacheName: 'images', | ||
}), | ||
'GET' | ||
'GET', | ||
); | ||
|
||
workboxSW.router.registerRoute( | ||
/^https?:\/\/hasjob.co\/*/, | ||
workboxSW.strategies.networkFirst({ | ||
cacheName: 'images', | ||
}), | ||
'GET' | ||
'GET', | ||
); | ||
|
||
workboxSW.router.registerRoute( | ||
/^https?:\/\/fonts.googleapis.com\/*/, | ||
workboxSW.strategies.networkFirst({ | ||
cacheName: 'fonts', | ||
}), | ||
'GET' | ||
'GET', | ||
); | ||
|
||
workboxSW.router.registerRoute( | ||
/^https?:\/\/fonts.gstatic.com\/*/, | ||
workboxSW.strategies.networkFirst({ | ||
cacheName: 'fonts', | ||
}), | ||
'GET' | ||
'GET', | ||
); | ||
|
||
/* The service worker handles all fetch requests. If fetching of job post page or | ||
|
@@ -122,7 +122,7 @@ self.addEventListener('install', (event) => { | |
return caches.open('hasjob-offline').then(function (cache) { | ||
return cache.put('offline', response); | ||
}); | ||
} | ||
) | ||
}, | ||
), | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.