From 6a2fc32b382301bd555a618b6ac017811d65388d Mon Sep 17 00:00:00 2001 From: "H. Kamran" Date: Sun, 3 Oct 2021 12:13:32 -0700 Subject: [PATCH] Add version 0.9.1, add better build scripts, add zip command to `rollup.config.js` --- .DS_Store | Bin 8196 -> 0 bytes .gitignore | 2 +- README.md | 6 ++++++ assets/.DS_Store | Bin 6148 -> 0 bytes assets/icons/.DS_Store | Bin 6148 -> 0 bytes package-lock.json | 5 +++-- package.json | 8 +++----- rollup.config.js | 13 +++++++++---- index.ts => src/index.ts | 4 +++- manifest.json => src/manifest.json | 4 ---- newtab.css => src/newtab.css | 0 template.html => src/template.html | 6 +++--- tailwind.config.js | 2 +- tsconfig.json | 4 ++-- 14 files changed, 31 insertions(+), 23 deletions(-) delete mode 100644 .DS_Store delete mode 100644 assets/.DS_Store delete mode 100644 assets/icons/.DS_Store rename index.ts => src/index.ts (97%) rename manifest.json => src/manifest.json (83%) rename newtab.css => src/newtab.css (100%) rename template.html => src/template.html (96%) diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 0a1e25ff5ed69a6bf8e729cd603cd8d08f779fd1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8196 zcmeHM&ubGw6n@jDHKmqD5L)oE2Mf_A+SmqE5Mqo6@ghX@U?ttnuFb+`CuBE9O(F~S z;9Z1z^AGS(5HEu0tv9{(C=?H#Jp1N{>1=+~(t{M7Df7O`y!U3l{W3e7*#ZD5w(K0h zA^;?@GEB{)8Bv&@)uA#Wd(I#d%m;5XSFX}}V<=L0Xa%$aS^=$qRzNFoTok}(HY>?7 z&wb(5Rx6+t_%9V;`-6d%VL@UfkZ&Dm_z?gxf!(}dJH;A^hQxxzNFaK!5Rr-~Qi(ib z5Rs1khKwsnj0B2wAoB1*q!v1z%WD}UzuLzRu%fVp@-w z=W)5|d(_`V7vnw!7PRpD_rQ)boc|T~s{DeVuhQRM@HL?1*XcgH(GhWOe78=3jk5;> z>yO;-;_Q8&I`_`|i!b}@Pv)vKkMhUnB@qq{C&34bb30IhI&Za50|x?Cg}K$MuMdh< zdF?LQd*{V>Hg;^4=V9Vi-l;DQ#(NgEszMW)I(P*E)Q~&gK`Lu7w$F}_R5`DAw|3Kl z^O$i}#($4i`GWD5@jV4?WNJYc?Gt30#rwXA=)xmxRT=kz70K46!BPw0DKZz?`Tyql_y0#8Ungn>v;xOp0g@<{OGV`Q=ZEYdWp>s!ux?;wg~dez mc?ud9!ut7f9I^ioLu?z;SCAM9L=P7IB7n=FjaJ~FD)1Ye{wJ3J diff --git a/.gitignore b/.gitignore index 9c3d931..a8881f1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ node_modules build dist -.DS_Store +**/.DS_Store .dccache \ No newline at end of file diff --git a/README.md b/README.md index 99a8aca..fcbada6 100644 --- a/README.md +++ b/README.md @@ -3,5 +3,11 @@ ![Nebula screenshot](screenshots/nebula-new-tab-screenshot.png) +## Building +1. Clone this repository +2. Run `npm install` +3. Run `npm run build:extension` +4. Install the extension with the generated ZIP file + ## Installation TBA \ No newline at end of file diff --git a/assets/.DS_Store b/assets/.DS_Store deleted file mode 100644 index 0ed415b7dde250be6be6e9c7bfb4c8bf70833912..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%}T>S5T5Oirij>sP>*}@)gRvW0<(xe8hl{|*Nk#FGZ zIJ3JgtyR2B0|2Z(XxRWo0I*OAGX)&J5n3mmlZ^J{5SiQ~@{_3N zcZEL}YaIWR0eW|NxCH?r#4!E--u+%Th~i4+gJrV0{K~3DvTj|u9g(=P7Z0Mk*T10I zi5GW#ZJ!F!o!Fj#7POOQar01wu@{8xzDy2UZ49|Q55ks6>S7SKBDs&N778TIVre+s ztCo3fcU0y>yJqi{`F^!F8WpV4wtaAXegF70d>*~LDqKC{6Nrhi(A2VdoFkl#1J_huOX{{|^>84`CfMMVl2Izd?sDzHjRG~aN zaF8tkBK<~6L7RFB%HbLvjj2LhL18KtQKd57Vlb7Cey-yjjj2MF4oo*6Oh1|F4u#35 zH1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 { hourStatus: "12", }); - await browser.tabs.create({ url: browser.runtime.getURL("index.html") }); + console.debug(browser.runtime.getURL("/index.html")); + + await browser.tabs.create({ url: browser.runtime.getURL("/index.html") }); }); // Background Image Initialization diff --git a/manifest.json b/src/manifest.json similarity index 83% rename from manifest.json rename to src/manifest.json index 6618879..243b186 100644 --- a/manifest.json +++ b/src/manifest.json @@ -18,9 +18,5 @@ "chrome_url_overrides": { "newtab": "index.html" }, - "chrome_settings_overrides": { - "homepage": "index.html", - "startup_pages": ["index.html"] - }, "permissions": ["storage"] } diff --git a/newtab.css b/src/newtab.css similarity index 100% rename from newtab.css rename to src/newtab.css diff --git a/template.html b/src/template.html similarity index 96% rename from template.html rename to src/template.html index d8a14ea..8c8c292 100644 --- a/template.html +++ b/src/template.html @@ -7,7 +7,7 @@ name="description" content="Welcome to Nebula, your new tab page!" /> - + @@ -33,7 +33,7 @@ text-8xl text-white " > - 16:30 + 00:00

- Friday, October 1, 2021 + Sunday, October 3, 2021

diff --git a/tailwind.config.js b/tailwind.config.js index 1406f83..d399a70 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -2,7 +2,7 @@ const defaultTheme = require("tailwindcss/defaultTheme"); module.exports = { mode: "jit", - purge: ["./template.html", "./index.ts", "./newtab.css"], + purge: ["./src/*.{html,css,ts}"], darkMode: "media", theme: { fontFamily: { diff --git a/tsconfig.json b/tsconfig.json index 2c77cf1..d5fccc9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,8 +6,8 @@ "forceConsistentCasingInFileNames": true, "strict": true, "skipLibCheck": true, - "outDir": "build", + "outDir": "./build", "rootDir": "./" }, - "include": ["./*.ts"] + "include": ["./src/*.ts"] }