aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2019-01-28 01:59:42 -0500
committerDeterminant <ted.sybil@gmail.com>2019-01-28 01:59:42 -0500
commit1d2773cbf4c15fd5b1384f7bd993edb63a460c3a (patch)
tree279aaa50a9f6189cd50bb6ad0207b93a44049929 /public
parent9eec5b0d0ca748a73abe23511688bbba9b906c22 (diff)
use React; impl the prototype
Diffstat (limited to 'public')
-rw-r--r--public/background.js3
-rw-r--r--public/icon128.pngbin0 -> 4154 bytes
-rw-r--r--public/icon16.pngbin0 -> 561 bytes
-rw-r--r--public/icon48.pngbin0 -> 1681 bytes
-rwxr-xr-xpublic/index.html40
-rwxr-xr-xpublic/manifest.json27
6 files changed, 70 insertions, 0 deletions
diff --git a/public/background.js b/public/background.js
new file mode 100644
index 0000000..76043c6
--- /dev/null
+++ b/public/background.js
@@ -0,0 +1,3 @@
+chrome.browserAction.onClicked.addListener(function() {
+ chrome.tabs.create({url: 'index.html'});
+});
diff --git a/public/icon128.png b/public/icon128.png
new file mode 100644
index 0000000..a56ffe8
--- /dev/null
+++ b/public/icon128.png
Binary files differ
diff --git a/public/icon16.png b/public/icon16.png
new file mode 100644
index 0000000..63a66db
--- /dev/null
+++ b/public/icon16.png
Binary files differ
diff --git a/public/icon48.png b/public/icon48.png
new file mode 100644
index 0000000..7d67400
--- /dev/null
+++ b/public/icon48.png
Binary files differ
diff --git a/public/index.html b/public/index.html
new file mode 100755
index 0000000..c442c87
--- /dev/null
+++ b/public/index.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <meta
+ name="viewport"
+ content="width=device-width, initial-scale=1, shrink-to-fit=no"
+ />
+ <meta name="theme-color" content="#000000" />
+ <!--
+ manifest.json provides metadata used when your web app is added to the
+ homescreen on Android. See https://developers.google.com/web/fundamentals/web-app-manifest/
+ -->
+ <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
+ <!--
+ Notice the use of %PUBLIC_URL% in the tags above.
+ It will be replaced with the URL of the `public` folder during the build.
+ Only files inside the `public` folder can be referenced from the HTML.
+
+ Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
+ work correctly both with client-side routing and a non-root public URL.
+ Learn how to configure a non-root public URL by running `npm run build`.
+ -->
+ <title>Chromicle</title>
+ </head>
+ <body>
+ <noscript>You need to enable JavaScript to run this app.</noscript>
+ <div id="root"></div>
+ <!--
+ This HTML file is a template.
+ If you open it directly in the browser, you will see an empty page.
+
+ You can add webfonts, meta tags, or analytics to this file.
+ The build step will place the bundled scripts into the <body> tag.
+
+ To begin the development, run `npm start` or `yarn start`.
+ To create a production bundle, use `npm run build` or `yarn build`.
+ -->
+ </body>
+</html>
diff --git a/public/manifest.json b/public/manifest.json
new file mode 100755
index 0000000..0b3d17e
--- /dev/null
+++ b/public/manifest.json
@@ -0,0 +1,27 @@
+{
+ "name": "chromicle",
+ "version": "0.1",
+ "description": "Chrome extension to find out your wasted part of life from Google Calendar.",
+ "background": {
+ "scripts": ["background.js"],
+ "persistent": false
+ },
+ "browser_action": {
+ "default_title": "chromicle"
+ },
+ "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAopUFqJFPozQrEnkBKa4iUAcJQTpVFfqe2+fiOZXL1NODVFr2w8gE6RriML/gQab99ZQ1CFYYpOHh5VFS+7rdTBwiNr5C01ZlLpfBZuH/RBVHwCxmNdFqmY5vFqMCGWdKWgrMOyvdl+vVNkr0T8aHadiQg18olaAYEqYzz+SDv371DC5IHssL2q+7fP4YsKmmQ1LT6NVpBh8Oq3qUCtAlayRrLOcvDRTyb3iT0RcUMIUlS1lp9otkkn7xopUEwwNAl+od5B4Wklv2iJxJ6mZKWvZDoFyC9Vr44+xdHrqGOFwMLLF1r4FFGFzyvk2bU1QmXkj+4ScX+FvrCZQdfRJ+cwIDAQAB",
+ "oauth2": {
+ "client_id": "17405925155-cs61263jgrsj4kt5usv41riph3oh8mq8.apps.googleusercontent.com",
+ "scopes": ["https://www.googleapis.com/auth/calendar.readonly"]
+ },
+ "permissions": [
+ "identity"
+ ],
+ "icons": {
+ "16": "icon16.png",
+ "48": "icon48.png",
+ "128": "icon128.png"
+ },
+ "content_security_policy": "script-src 'self' 'sha256-GgRxrVOKNdB4LrRsVPDSbzvfdV4UqglmviH9GoBJ5jk='; object-src 'self'",
+ "manifest_version": 2
+}