-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore:added tailwind removed sass modified linting
- Loading branch information
1 parent
f7a0d54
commit e114cfd
Showing
17 changed files
with
461 additions
and
385 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
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,7 @@ | ||
{ | ||
"semi": true, | ||
"singleQuote": true, | ||
"tabWidth": 4, | ||
"trailingComma": "all", | ||
"endOfLine": "lf" | ||
} |
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,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
}; |
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,34 +1,13 @@ | ||
import * as React from 'react'; | ||
|
||
import './styles.scss'; | ||
|
||
import '../styles/index.css'; | ||
const Options: React.FC = () => { | ||
return ( | ||
<div> | ||
<form> | ||
<p> | ||
<label htmlFor="username">Your Name</label> | ||
<br /> | ||
<input | ||
type="text" | ||
id="username" | ||
name="username" | ||
spellCheck="false" | ||
autoComplete="off" | ||
required | ||
/> | ||
</p> | ||
<p> | ||
<label htmlFor="logging"> | ||
<input type="checkbox" name="logging" /> Show the features enabled | ||
on each page in the console | ||
</label> | ||
|
||
<p>cool cool cool</p> | ||
</p> | ||
</form> | ||
</div> | ||
); | ||
return ( | ||
<div className="w-full h-full flex flex-col justify-center items-center"> | ||
<form className="shadow-md m-auto w-3/4 h-3/4"> | ||
<input type="checkbox" name="checkbox" id="checkbox" /> | ||
</form> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Options; |
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 |
---|---|---|
@@ -1,55 +1,55 @@ | ||
import * as React from 'react'; | ||
import {browser, Tabs} from 'webextension-polyfill-ts'; | ||
import { browser, Tabs } from 'webextension-polyfill-ts'; | ||
|
||
import './styles.scss'; | ||
import '../styles/index.css'; | ||
|
||
function openWebPage(url: string): Promise<Tabs.Tab> { | ||
return browser.tabs.create({url}); | ||
return browser.tabs.create({ url }); | ||
} | ||
|
||
const Popup: React.FC = () => { | ||
return ( | ||
<section id="popup"> | ||
<h2>WEB-EXTENSION-STARTER</h2> | ||
<button | ||
id="options__button" | ||
type="button" | ||
onClick={(): Promise<Tabs.Tab> => { | ||
return openWebPage('options.html'); | ||
}} | ||
> | ||
Options Page | ||
</button> | ||
<div className="links__holder"> | ||
<ul> | ||
<li> | ||
return ( | ||
<section id="popup"> | ||
<h2>WEB-EXTENSION-STARTER</h2> | ||
<button | ||
type="button" | ||
onClick={(): Promise<Tabs.Tab> => { | ||
return openWebPage( | ||
'https://github.com/abhijithvijayan/web-extension-starter' | ||
); | ||
}} | ||
id="options__button" | ||
type="button" | ||
onClick={(): Promise<Tabs.Tab> => { | ||
return openWebPage('options.html'); | ||
}} | ||
> | ||
GitHub | ||
Options Page | ||
</button> | ||
</li> | ||
<li> | ||
<button | ||
type="button" | ||
onClick={(): Promise<Tabs.Tab> => { | ||
return openWebPage( | ||
'https://www.buymeacoffee.com/abhijithvijayan' | ||
); | ||
}} | ||
> | ||
Buy Me A Coffee | ||
</button> | ||
</li> | ||
</ul> | ||
</div> | ||
</section> | ||
); | ||
<div className="links__holder"> | ||
<ul> | ||
<li> | ||
<button | ||
type="button" | ||
onClick={(): Promise<Tabs.Tab> => { | ||
return openWebPage( | ||
'https://github.com/abhijithvijayan/web-extension-starter', | ||
); | ||
}} | ||
> | ||
GitHub | ||
</button> | ||
</li> | ||
<li> | ||
<button | ||
type="button" | ||
onClick={(): Promise<Tabs.Tab> => { | ||
return openWebPage( | ||
'https://www.buymeacoffee.com/abhijithvijayan', | ||
); | ||
}} | ||
> | ||
Buy Me A Coffee | ||
</button> | ||
</li> | ||
</ul> | ||
</div> | ||
</section> | ||
); | ||
}; | ||
|
||
export default Popup; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
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,9 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
content: ["./source/**/*.tsx"], | ||
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
} | ||
|
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,11 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Options</title> | ||
</head> | ||
<body> | ||
<div id="options-root"></div> | ||
</body> | ||
<html lang="en" style="height: 100%"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Options</title> | ||
</head> | ||
<body style="height: 100%"> | ||
<div style="height: 100%" id="options-root"></div> | ||
</body> | ||
</html> |
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,11 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=500" /> | ||
<title>Popup</title> | ||
</head> | ||
<body> | ||
<div id="popup-root"></div> | ||
</body> | ||
<html lang="en" style="height: 100%"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=500" /> | ||
<title>Popup</title> | ||
</head> | ||
<body style="height: 100%"> | ||
<div style="height: 100%" id="popup-root"></div> | ||
</body> | ||
</html> |
Oops, something went wrong.