Upgrade to version 2.2.0

This commit is contained in:
mickie 2021-04-06 03:44:53 -05:00
parent 7ad0db7031
commit 3e9acfdef5
34 changed files with 10105 additions and 10448 deletions

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
web-ext-artifacts
web-ext-artifacts.*
src.*
*.org
*.org
node_modules/

10038
css/bootstrap.css vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,230 +0,0 @@
/*by Kim*/
/* Button Style 1 (Left Icons) */
html,
body {
width: auto;
height: auto;
}
.btns-container{
height:auto;
width: auto;
float:right;
padding: 5px 5px 5px 1px;
}
.btns-container a{
float:right;
margin:2px;
}
.btns-container a:hover{
color: #fff;
text-decoration: none;
}
a.btn-grey, a.btn-grey:hover{
color: #666 !important;
}
.btn-gradient {
width:40%;
position: relative;
display: inline-block;
left:-20px;
background: rgba(0, 0, 0, 0.15);
border-top-right-radius: 60px;
padding: 8px 24px 8px 16px;
box-shadow: 2px 0px 0px 0px rgba(78, 72, 72, 0.4);
}
.btn-gnusocial{
font-size:20px;
padding:0px 20px;
color: #fff;
background-color: #a22430;
border:none;
justify-content: center;
align-items: center;
display: flex;
width:230px;
}
.btn-mastodon{
font-size:20px;
padding:0px 20px;
color: #fff;
background-color: #2b90d9;
border:none;
justify-content: center;
align-items: center;
display: flex;
width:230px;
}
.btn-pleroma{
font-size:20px;
padding:0px 20px;
color: #fff;
background-color: #fba457;
border:none;
justify-content: center;
align-items: center;
display: flex;
width:230px;
}
.btn-hubzilla{
font-size:20px;
padding:0px 20px;
color: #fff;
background-color: #44498b;
border:none;
justify-content: center;
align-items: center;
display: flex;
width:230px;
}
.btn-diaspora{
font-size:20px;
padding:0px 20px;
color: #fff;
background-color: #000000;
border:none;
justify-content: center;
align-items: center;
display: flex;
width:230px;
}
.btn-friendica{
font-size:20px;
padding:0px 20px;
color: #fff;
background-color: #f7c43d;
border:none;
justify-content: center;
align-items: center;
display: flex;
width:230px;
}
.btn-lemmy{
font-size:20px;
padding:0px 20px;
color: #fff;
background-color: #16a2b5;
border:none;
justify-content: center;
align-items: center;
display: flex;
width:230px;
}
.btn-socialhome{
font-size:20px;
padding:0px 20px;
color: #fff;
background-color: #2fcbbe;
border:none;
justify-content: center;
align-items: center;
display: flex;
width:230px;
}
.btn-xmpp{
font-size:20px;
padding:0px 20px;
color: #fff;
background-color: #a0ce67;
border:none;
justify-content: center;
align-items: center;
display: flex;
width:230px;
}
.btn-nextcloud{
font-size:20px;
padding:0px 20px;
color: #fff;
background-color: #007ec3;
border:none;
justify-content: center;
align-items: center;
display: flex;
width:230px;
}
.btn-text{
width:60%;
}
.btn-gradient i{
font-size:30px;
display:flex;
justify-content:center;
align-items:center;
}
.flex {
float: relative;
display: flex;
flex-direction: row;
}
.options-container {
display: flex;
flex: initial;
flex-direction: row;
float: left;
cursor: pointer;
color: #7d7d7d;
}
.btn-options {
font-size: 30px;
display: flex;
justify-content: center;
align-items: center;
}
label {
display: block;
color: #ffffff;
padding: 3px;
margin: 5px;
}
button {
margin: 15px;
padding: 3px;
border: none;
border-radius: 5px;
width: 190px;
height: 35px;
text-align: center;
background-color: #3455b8;
color: #ffffff;
font-size: 19px;
}
button:hover {
background-color: #3a5fcd;
}
button:active {
background-color: #22397b;
}
h2 {
color: #ffffff;
}
.credits {
color: #ffffff;
}

View File

@ -1,90 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<base target="_blank" />
<title>Share freedom</title>
<link rel="stylesheet" href="../css/bootstrap.css">
<link rel="stylesheet" href="../css/fork-awesome.css">
<link href="../css/style.css" rel="stylesheet" />
</head>
<body>
<div class="flex">
<div class="btns-container">
<div>
<a target="_blank" class="btn btn-gnusocial" id="url-gnusocial" title="Share on GNU Social" hidden>
<span class="btn-gradient">
<i class="fa fa-gnu-social"></i>
</span>
<span class="btn-text">GnuSocial</span>
</a>
<a target="_blank" class="btn btn-mastodon" id="url-mastodon" title="Share on Mastodon" hidden>
<span class="btn-gradient">
<i class="fa fa-mastodon"></i>
</span>
<span class="btn-text">Mastodon</span>
</a>
<a target="_blank" class="btn btn-pleroma" id="url-pleroma" title="Share on Pleroma" hidden>
<span class="btn-gradient">
<i class="fa fa-pleroma"></i>
</span>
<span class="btn-text">Pleroma</span>
</a>
<a target="_blank" class="btn btn-hubzilla" id="url-hubzilla" title="Share on Hubzilla" hidden>
<span class="btn-gradient">
<i class="fa fa-hubzilla"></i>
</span>
<span class="btn-text">Hubzilla</span>
</a>
<a target="_blank" class="btn btn-diaspora" id="url-diaspora" title="Share on Diaspora" hidden>
<span class="btn-gradient">
<i class="fa fa-diaspora"></i>
</span>
<span class="btn-text">Diaspora</span>
</a>
<a target="_blank" class="btn btn-friendica" id="url-friendica" title="Share on Friendica" hidden>
<span class="btn-gradient">
<i class="fa fa-friendica"></i>
</span>
<span class="btn-text">Friendica</span>
</a>
<a target="_blank" class="btn btn-lemmy" id="url-lemmy" title="Share on Lemmy" hidden>
<span class="btn-gradient">
<i class="fa fa-activitypub"></i>
</span>
<span class="btn-text">Lemmy</span>
</a>
<a target="_blank" class="btn btn-socialhome" id="url-socialhome" title="Share on SocialHome" hidden>
<span class="btn-gradient">
<i class="fa fa-social-home"></i>
</span>
<span class="btn-text">SocialHome</span>
</a>
<a target="_blank" class="btn btn-xmpp" id="url-xmpp" title="Share on Jabber" hidden>
<span class="btn-gradient">
<i class="fa fa-xmpp"></i>
</span>
<span class="btn-text">XMPP</span>
</a>
</div>
</div>
<div class="options-container">
<a class="btn btn-options" id="options" target="_blank"><i class="fa fa-cog"></i></a>
</div>
</div>
</body>
<script src="../js/index.js" type="module"></script>
<script src="../js/background.js" type="module"></script>
</html>

View File

@ -1,72 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<base target="_blank" />
<link rel="stylesheet" href="../css/bootstrap.css">
<link rel="stylesheet" href="../css/fork-awesome.css">
<link rel="stylesheet" href="../css/style.css">
<style>
body {
background-image: url('../img/wallpaper.png');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
</style>
</head>
<body>
<div class="container-fluid py-3">
<div class="row">
<div class="col-8 text-left"><h2>Settings</h2></div>
<div class="col-4 text-right credits">Wallpaper by:
<a href="https://fosstodon.org/@yarmo/101907879701964911">Yarmo</a>
</div>
</div>
<form>
<label>Diaspora</label>
<input type="text" id="diaspora-host" />
<input type="checkbox" id="diaspora-check">
<br />
<label>Friendica</label>
<input type="text" id="friendica-host" />
<input type="checkbox" id="friendica-check">
<br />
<label>GNU social</label>
<input type="text" id="gnusocial-host" />
<input type="checkbox" id="gnusocial-check">
<br />
<label>Hubzilla</label>
<input type="text" id="hubzilla-host" />
<input type="checkbox" id="hubzilla-check">
<br />
<label>Lemmy</label>
<input type="text" id="lemmy-host" />
<input type="checkbox" id="lemmy-check">
<br />
<label>Mastodon</label>
<input type="text" id="mastodon-host" />
<input type="checkbox" id="mastodon-check">
<br />
<label>Pleroma</label>
<input type="text" id="pleroma-host" />
<input type="checkbox" id="pleroma-check">
<br />
<label>Socialhome</label>
<input type="text" id="socialhome-host" />
<input type="checkbox" id="socialhome-check">
<br />
<label>XMPP</label>
<input type="text" id="xmpp-host" />
<input type="checkbox" id="xmpp-check">
<br />
<button type="submit">Save changes</button>
</form>
<script src="../js/options.js" type="module"></script>
<script src="../js/background.js" type="module"></script>
</body>
</html>

View File

@ -1,8 +1,59 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"target": "es6",
"rootDir": "js",
"lib": ["es6"],
// "allowJs": true,
// "checkJs": true,
// "jsx": "preserve",
"declaration": true,
// "declarationMap": true,
// "sourceMap": true,
// "outFile": "./",
"outDir": "./dist",
// "rootDir": "./",
// "composite": true,
"removeComments": true,
// "noEmit": true,
// "importHelpers": true,
"downlevelIteration": true,
// "isolatedModules": true,
/* Strict Type-Checking Options */
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"noImplicitThis": true,
"alwaysStrict": true,
/* Additional Checks */
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
/* Module Resolution Options */
// "moduleResolution": "node",
// "baseUrl": "./",
// "paths": {},
// "rootDirs": [],
// "typeRoots": [],
// "types": [],
// "allowSyntheticDefaultImports": true,
"esModuleInterop": true,
// "preserveSymlinks": true,
/* Source Map Options */
// "sourceRoot": "./",
// "mapRoot": "./",
// "inlineSourceMap": true,
// "inlineSources": true,
/* Experimental Options */
// "experimentalDecorators": true,
// "emitDecoratorMetadata": true,
},
"exclude": ["node_modules"]
"include": ["./src"]
}

View File

@ -7,28 +7,28 @@
"author": "Mickie",
"background": {
"scripts": ["js/background.js"],
"scripts": ["src/js/background.js"],
"persistent": true
},
"browser_action": {
"default_icon": "img/icon-32-dark.png",
"default_popup": "html/index.html",
"default_icon": "src/img/icon-32-dark.png",
"default_popup": "src/html/index.html",
"default_title": "Share freedom",
"theme_icons": [{
"light": "img/icon-16-light.png",
"dark": "img/icon-16-dark.png",
"light": "src/img/icon-16-light.png",
"dark": "src/img/icon-16-dark.png",
"size": 16
}, {
"light": "img/icon-32-light.png",
"dark": "img/icon-32-dark.png",
"light": "src/img/icon-32-light.png",
"dark": "src/img/icon-32-dark.png",
"size": 32
}]
},
"icons": {
"16":"img/icon-16-dark.png",
"32":"img/icon-32-dark.png"
"16":"src/img/icon-16-dark.png",
"32":"src/img/icon-32-dark.png"
},
"commands": {
@ -41,7 +41,7 @@
},
"options_ui": {
"page": "html/options.html",
"page": "src/html/options.html",
"browser_style": true,
"chrome_style": true
},

8934
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,11 @@
{
"name": "share-freedom",
"version": "2.1.3",
"version": "2.2.0",
"description": "Share the current tab on the fediverse",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build:css": "postcss ./src/css/styles.css -o ./src/css/main.css",
"build": "NODE_ENV=production postcss ./src/css/styles.css -o ./src/css/main.css"
},
"repository": {
"type": "git",
@ -19,5 +20,10 @@
"bugs": {
"url": "https://gitlab.com/mugcake/share-freedom-extension/issues"
},
"homepage": "https://gitlab.com/mugcake/share-freedom-extension#readme"
"homepage": "https://gitlab.com/mugcake/share-freedom-extension#readme",
"dependencies": {
"autoprefixer": "^10.2.5",
"postcss-cli": "^8.3.1",
"tailwindcss": "^2.0.4"
}
}

6
postcss.config.js Normal file
View File

@ -0,0 +1,6 @@
module.exports ={
plugins: {
tailwindcss: {},
autoprefixer: {}
}
}

841
src/css/main.css Normal file
View File

@ -0,0 +1,841 @@
/*! tailwindcss v2.0.4 | MIT License | https://tailwindcss.com */
/*! modern-normalize v1.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
/*
Document
========
*/
/**
Use a better box model (opinionated).
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
/**
Use a more readable tab size (opinionated).
*/
:root {
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
}
/**
1. Correct the line height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/*
Sections
========
*/
/**
Remove the margin in all browsers.
*/
body {
margin: 0;
}
/**
Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
*/
body {
font-family:
system-ui,
-apple-system, /* Firefox supports this but not yet `system-ui` */
'Segoe UI',
Roboto,
Helvetica,
Arial,
sans-serif,
'Apple Color Emoji',
'Segoe UI Emoji';
}
/*
Grouping content
================
*/
/**
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
*/
hr {
height: 0; /* 1 */
color: inherit; /* 2 */
}
/*
Text-level semantics
====================
*/
/**
Add the correct text decoration in Chrome, Edge, and Safari.
*/
abbr[title] {
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
/**
Add the correct font weight in Edge and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
2. Correct the odd 'em' font sizing in all browsers.
*/
code,
kbd,
samp,
pre {
font-family:
ui-monospace,
SFMono-Regular,
Consolas,
'Liberation Mono',
Menlo,
monospace; /* 1 */
font-size: 1em; /* 2 */
}
/**
Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/*
Tabular data
============
*/
/**
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
*/
table {
text-indent: 0; /* 1 */
border-color: inherit; /* 2 */
}
/*
Forms
=====
*/
/**
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */
margin: 0; /* 2 */
}
/**
Remove the inheritance of text transform in Edge and Firefox.
1. Remove the inheritance of text transform in Firefox.
*/
button,
select { /* 1 */
text-transform: none;
}
/**
Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type='button'],
[type='submit'] {
-webkit-appearance: button;
}
/**
Remove the inner border and padding in Firefox.
*/
/**
Restore the focus styles unset by the previous rule.
*/
/**
Remove the additional ':invalid' styles in Firefox.
See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
*/
/**
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
*/
legend {
padding: 0;
}
/**
Add the correct vertical alignment in Chrome and Firefox.
*/
progress {
vertical-align: baseline;
}
/**
Correct the cursor style of increment and decrement buttons in Safari.
*/
/**
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/
/**
Remove the inner padding in Chrome and Safari on macOS.
*/
/**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/
/*
Interactive
===========
*/
/*
Add the correct display in Chrome and Safari.
*/
summary {
display: list-item;
}
/**
* Manually forked from SUIT CSS Base: https://github.com/suitcss/base
* A thin layer on top of normalize.css that provides a starting point more
* suitable for web applications.
*/
/**
* Removes the default spacing and border for appropriate elements.
*/
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
margin: 0;
}
button {
background-color: transparent;
background-image: none;
}
/**
* Work around a Firefox/IE bug where the transparent `button` background
* results in a loss of the default `button` focus styles.
*/
button:focus {
outline: 1px dotted;
outline: 5px auto -webkit-focus-ring-color;
}
fieldset {
margin: 0;
padding: 0;
}
ol,
ul {
list-style: none;
margin: 0;
padding: 0;
}
/**
* Tailwind custom reset styles
*/
/**
* 1. Use the user's configured `sans` font-family (with Tailwind's default
* sans-serif font stack as a fallback) as a sane default.
* 2. Use Tailwind's default "normal" line-height so the user isn't forced
* to override it to ensure consistency even when using the default theme.
*/
html {
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 1 */
line-height: 1.5; /* 2 */
}
/**
* Inherit font-family and line-height from `html` so users can set them as
* a class directly on the `html` element.
*/
body {
font-family: inherit;
line-height: inherit;
}
/**
* 1. Prevent padding and border from affecting element width.
*
* We used to set this in the html element and inherit from
* the parent element for everything else. This caused issues
* in shadow-dom-enhanced elements like <details> where the content
* is wrapped by a div with box-sizing set to `content-box`.
*
* https://github.com/mozdevs/cssremedy/issues/4
*
*
* 2. Allow adding a border to an element by just adding a border-width.
*
* By default, the way the browser specifies that an element should have no
* border is by setting it's border-style to `none` in the user-agent
* stylesheet.
*
* In order to easily add borders to elements by just setting the `border-width`
* property, we change the default border-style for all elements to `solid`, and
* use border-width to hide them instead. This way our `border` utilities only
* need to set the `border-width` property instead of the entire `border`
* shorthand, making our border utilities much more straightforward to compose.
*
* https://github.com/tailwindcss/tailwindcss/pull/116
*/
*,
::before,
::after {
box-sizing: border-box; /* 1 */
border-width: 0; /* 2 */
border-style: solid; /* 2 */
border-color: #e5e7eb; /* 2 */
}
/*
* Ensure horizontal rules are visible by default
*/
hr {
border-top-width: 1px;
}
/**
* Undo the `border-style: none` reset that Normalize applies to images so that
* our `border-{width}` utilities have the expected effect.
*
* The Normalize reset is unnecessary for us since we default the border-width
* to 0 on all elements.
*
* https://github.com/tailwindcss/tailwindcss/issues/362
*/
img {
border-style: solid;
}
textarea {
resize: vertical;
}
input::-moz-placeholder, textarea::-moz-placeholder {
opacity: 1;
color: #9ca3af;
}
input:-ms-input-placeholder, textarea:-ms-input-placeholder {
opacity: 1;
color: #9ca3af;
}
input::placeholder,
textarea::placeholder {
opacity: 1;
color: #9ca3af;
}
button {
cursor: pointer;
}
table {
border-collapse: collapse;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: inherit;
font-weight: inherit;
}
/**
* Reset links to optimize for opt-in styling instead of
* opt-out.
*/
a {
color: inherit;
text-decoration: inherit;
}
/**
* Reset form element properties that are easy to forget to
* style explicitly so you don't inadvertently introduce
* styles that deviate from your design system. These styles
* supplement a partial reset that is already applied by
* normalize.css.
*/
button,
input,
optgroup,
select,
textarea {
padding: 0;
line-height: inherit;
color: inherit;
}
/**
* Use the configured 'mono' font family for elements that
* are expected to be rendered with a monospace font, falling
* back to the system monospace stack if there is no configured
* 'mono' font family.
*/
pre,
code,
kbd,
samp {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
/**
* Make replaced elements `display: block` by default as that's
* the behavior you want almost all of the time. Inspired by
* CSS Remedy, with `svg` added as well.
*
* https://github.com/mozdevs/cssremedy/issues/14
*/
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
display: block;
vertical-align: middle;
}
/**
* Constrain images and videos to the parent width and preserve
* their instrinsic aspect ratio.
*
* https://github.com/mozdevs/cssremedy/issues/14
*/
img,
video {
max-width: 100%;
height: auto;
}
/* index */
.button {
--tw-bg-opacity: 1;
background-color: rgba(209, 213, 219, var(--tw-bg-opacity));
}
.button:hover {
--tw-bg-opacity: 1;
background-color: rgba(156, 163, 175, var(--tw-bg-opacity));
}
.button {
font-weight: 700;
padding-left: 1rem;
padding-right: 1rem;
padding-top: 0.125rem;
padding-bottom: 0.125rem;
--tw-text-opacity: 1;
color: rgba(31, 41, 55, var(--tw-text-opacity));
}
.icon {
font-size: 1.875rem;
line-height: 2.25rem;
}
.btn-mastodon:hover {
--tw-bg-opacity: 1;
background-color: rgba(191, 219, 254, var(--tw-bg-opacity));
--tw-text-opacity: 1;
color: rgba(29, 78, 216, var(--tw-text-opacity));
}
.btn-pleroma:hover {
--tw-bg-opacity: 1;
background-color: rgba(251, 191, 36, var(--tw-bg-opacity));
--tw-text-opacity: 1;
color: rgba(255, 255, 255, var(--tw-text-opacity));
}
.btn-diaspora:hover {
--tw-bg-opacity: 1;
background-color: rgba(17, 24, 39, var(--tw-bg-opacity));
--tw-text-opacity: 1;
color: rgba(255, 255, 255, var(--tw-text-opacity));
}
.btn-friendica:hover {
--tw-bg-opacity: 1;
background-color: rgba(29, 78, 216, var(--tw-bg-opacity));
--tw-text-opacity: 1;
color: rgba(252, 211, 77, var(--tw-text-opacity));
}
.btn-hubzilla:hover {
--tw-bg-opacity: 1;
background-color: rgba(55, 48, 163, var(--tw-bg-opacity));
--tw-text-opacity: 1;
color: rgba(255, 255, 255, var(--tw-text-opacity));
}
.btn-lemmy:hover {
--tw-bg-opacity: 1;
background-color: rgba(4, 120, 87, var(--tw-bg-opacity));
--tw-text-opacity: 1;
color: rgba(255, 255, 255, var(--tw-text-opacity));
}
.btn-socialhome:hover {
--tw-bg-opacity: 1;
background-color: rgba(55, 65, 81, var(--tw-bg-opacity));
--tw-text-opacity: 1;
color: rgba(110, 231, 183, var(--tw-text-opacity));
}
.btn-gnusocial:hover {
--tw-bg-opacity: 1;
background-color: rgba(254, 202, 202, var(--tw-bg-opacity));
--tw-text-opacity: 1;
color: rgba(153, 27, 27, var(--tw-text-opacity));
}
.btn-xmpp:hover {
--tw-bg-opacity: 1;
background-color: rgba(30, 58, 138, var(--tw-bg-opacity));
--tw-text-opacity: 1;
color: rgba(16, 185, 129, var(--tw-text-opacity));
}
.btn-options:hover {
--tw-bg-opacity: 1;
background-color: rgba(243, 244, 246, var(--tw-bg-opacity));
}
.btn-options {
cursor: pointer;
}
.btn-options:hover {
--tw-text-opacity: 1;
color: rgba(0, 0, 0, var(--tw-text-opacity));
}
/* options */
.span-custom {
--tw-bg-opacity: 1;
background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
border-top-left-radius: 0.25rem;
border-bottom-left-radius: 0.25rem;
border-width: 2px;
border-width: 1px;
font-weight: 700;
font-size: 1.25rem;
line-height: 1.75rem;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
padding-left: 1rem;
padding-right: 1rem;
--tw-text-opacity: 1;
color: rgba(29, 78, 216, var(--tw-text-opacity));
}
.text-custom {
border-width: 2px;
border-width: 1px;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
padding-left: 1rem;
padding-right: 1rem;
width: 100%;
}
.checkbox-custom {
margin: 0.75rem;
}
.btn-save {
--tw-bg-opacity: 1;
background-color: rgba(59, 130, 246, var(--tw-bg-opacity));
}
.btn-save:hover {
--tw-bg-opacity: 1;
background-color: rgba(29, 78, 216, var(--tw-bg-opacity));
}
.btn-save {
border-radius: 9999px;
font-weight: 700;
font-size: 1.25rem;
line-height: 1.75rem;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
padding-left: 1rem;
padding-right: 1rem;
text-align: center;
--tw-text-opacity: 1;
color: rgba(255, 255, 255, var(--tw-text-opacity));
width: 11rem;
}
.bg-fixed {
background-attachment: fixed;
}
.bg-gray-500 {
--tw-bg-opacity: 1;
background-color: rgba(107, 114, 128, var(--tw-bg-opacity));
}
.flex {
display: flex;
}
.inline-flex {
display: inline-flex;
}
.table {
display: table;
}
.grid {
display: grid;
}
.hidden {
display: none;
}
.text-5xl {
font-size: 3rem;
line-height: 1;
}
.px-2 {
padding-left: 0.5rem;
padding-right: 0.5rem;
}
.py-3 {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
}
.py-4 {
padding-top: 1rem;
padding-bottom: 1rem;
}
* {
--tw-shadow: 0 0 #0000;
}
* {
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: rgba(59, 130, 246, 0.5);
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
}
.text-left {
text-align: left;
}
.text-right {
text-align: right;
}
.text-blue-400 {
--tw-text-opacity: 1;
color: rgba(96, 165, 250, var(--tw-text-opacity));
}
.gap-5 {
gap: 1.25rem;
}
@-webkit-keyframes spin {
to {
transform: rotate(360deg);
}
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
@-webkit-keyframes ping {
75%, 100% {
transform: scale(2);
opacity: 0;
}
}
@keyframes ping {
75%, 100% {
transform: scale(2);
opacity: 0;
}
}
@-webkit-keyframes pulse {
50% {
opacity: .5;
}
}
@keyframes pulse {
50% {
opacity: .5;
}
}
@-webkit-keyframes bounce {
0%, 100% {
transform: translateY(-25%);
-webkit-animation-timing-function: cubic-bezier(0.8,0,1,1);
animation-timing-function: cubic-bezier(0.8,0,1,1);
}
50% {
transform: none;
-webkit-animation-timing-function: cubic-bezier(0,0,0.2,1);
animation-timing-function: cubic-bezier(0,0,0.2,1);
}
}
@keyframes bounce {
0%, 100% {
transform: translateY(-25%);
-webkit-animation-timing-function: cubic-bezier(0.8,0,1,1);
animation-timing-function: cubic-bezier(0.8,0,1,1);
}
50% {
transform: none;
-webkit-animation-timing-function: cubic-bezier(0,0,0.2,1);
animation-timing-function: cubic-bezier(0,0,0.2,1);
}
}
@media (min-width: 640px) {
}
@media (min-width: 768px) {
}
@media (min-width: 1024px) {
}
@media (min-width: 1280px) {
}
@media (min-width: 1536px) {
}

58
src/css/styles.css Normal file
View File

@ -0,0 +1,58 @@
@tailwind base;
@tailwind components;
/* index */
.button {
@apply bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-0.5 px-4;
}
.icon {
@apply text-3xl;
}
.btn-mastodon {
@apply hover:bg-blue-200 hover:text-blue-700;
}
.btn-pleroma {
@apply hover:bg-yellow-400 hover:text-white;
}
.btn-diaspora {
@apply hover:bg-gray-900 hover:text-white;
}
.btn-friendica {
@apply hover:bg-blue-700 hover:text-yellow-300;
}
.btn-hubzilla {
@apply hover:bg-indigo-800 hover:text-white;
}
.btn-lemmy {
@apply hover:bg-green-700 hover:text-white;
}
.btn-socialhome {
@apply hover:bg-gray-700 hover:text-green-300;
}
.btn-gnusocial {
@apply hover:bg-red-200 hover:text-red-800;
}
.btn-xmpp {
@apply hover:bg-blue-900 hover:text-green-500;
}
.btn-options {
@apply cursor-pointer hover:bg-gray-100 hover:text-black;
}
/* options */
.span-custom {
@apply text-xl text-blue-700 border border-2 font-bold rounded-l px-4 py-2 bg-white;
}
.text-custom {
@apply border border-2 px-4 py-2 w-full;
}
.checkbox-custom {
@apply m-3;
}
.btn-save {
@apply bg-blue-500 text-xl hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full w-44 text-center;
}
@tailwind utilities;

View File

Before

Width:  |  Height:  |  Size: 470 KiB

After

Width:  |  Height:  |  Size: 470 KiB

76
src/html/index.html Normal file
View File

@ -0,0 +1,76 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="../css/fork-awesome.css" rel="stylesheet">
<link href="../css/main.css" rel="stylesheet">
</head>
<body>
<div class="inline-flex">
<a class="button btn-pleroma" id="url-pleroma" title="Share on Pleroma" hidden>
<span>
<i class="fa fa-pleroma icon"></i>
</span>
<span>Pleroma</span>
</a>
<a class="button btn-mastodon" id="url-mastodon" title="Share on Mastodon" hidden>
<span>
<i class="fa fa-mastodon icon"></i>
</span>
<span>Mastodon</span>
</a>
<a class="button btn-gnusocial" id="url-gnusocial" title="Share on GNU Social" hidden>
<span>
<i class="fa fa-gnu-social icon"></i>
</span>
<span>GNUsocial</span>
</a>
<a class="button btn-diaspora" id="url-diaspora" title="Share on Diaspora" hidden>
<span>
<i class="fa fa-diaspora icon"></i>
</span>
<span>Diaspora</span>
</a>
<a class="button btn-friendica" id="url-friendica" title="Share on Friendica" hidden>
<span>
<i class="fa fa-friendica icon"></i>
</span>
<span>Friendica</span>
</a>
<a class="button btn-hubzilla" id="url-hubzilla" title="Share on Hubzilla" hidden>
<span>
<i class="fa fa-hubzilla icon"></i>
</span>
<span>Hubzilla</span>
</a>
<a class="button btn-socialhome" id="url-socialhome" title="Share on Socialhome" hidden>
<span>
<i class="fa fa-social-home icon"></i>
</span>
<span>Socialhome</span>
</a>
<a class="button btn-lemmy" id="url-lemmy" title="Share on Lemmy" hidden>
<span>
<i class="fa fa-activitypub icon"></i>
</span>
<span>Lemmy</span>
</a>
<a class="button btn-xmpp" id="url-xmpp" title="Share on XMPP/Jabber" hidden>
<span>
<i class="fa fa-xmpp icon"></i>
</span>
<span>XMPP</span>
</a>
<a class="button btn-options" id="options" title="Options">
<span>
<i class="fa fa-cog icon"></i>
</span>
<span>Options</span>
</a>
</div>
</body>
<script src="../js/index.js" type="module"></script>
<script src="../js/background.js" type="module"></script>
</html>

103
src/html/options.html Normal file
View File

@ -0,0 +1,103 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="../css/fork-awesome.css" rel="stylesheet">
<link href="../css/main.css" rel="stylesheet">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1">
<base target=""_blank />
<link rel="stylesheet" href="../css/bootstrap.css">
<link rel="stylesheet" href="../css/fork-awesome.css">
<link rel="stylesheet" href="../css/style.css">
<style>
body {
background-image: url('../img/wallpaper.png');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
</style> -->
</head>
<body class="bg-fixed px-2 py-3" style="background-image: url('../img/wallpaper.png')">
<!-- <div class="container-fluid py-3">
<div class="row">
<div class="col-8 text-left"><h2>Settings</h2></div>
<div class="col-4 text-right credits">Wallpaper by:
<a href="https://fosstodon.org/@yarmo/101907879701964911">Yarmo</a>
</div>
</div> -->
<div class="text-5xl px-2 py-4 text-blue-400">Settings</div>
<form class="grid gap-5">
<div class="flex">
<span class="span-custom">Pleroma:</span>
<input id="pleroma-host" class="text-custom" type="text">
<div class="bg-gray-500">
<input class="checkbox-custom" type="checkbox" id="pleroma-check">
</div>
</div>
<div class="flex">
<span class="span-custom">Mastodon:</span>
<input id="mastodon-host" class="text-custom" type="text">
<div class="bg-gray-500">
<input class="checkbox-custom" type="checkbox" id="mastodon-check">
</div>
</div>
<div class="flex">
<span class="span-custom">GNUsocial:</span>
<input id="gnusocial-host" class="text-custom" type="text">
<div class="bg-gray-500">
<input class="checkbox-custom" type="checkbox" id="gnusocial-check">
</div>
</div>
<div class="flex">
<span class="span-custom">Diaspora:</span>
<input id="diaspora-host" class="text-custom" type="text">
<div class="bg-gray-500">
<input class="checkbox-custom" type="checkbox" id="diaspora-check">
</div>
</div>
<div class="flex">
<span class="span-custom">Friendica:</span>
<input id="friendica-host" class="text-custom" type="text">
<div class="bg-gray-500">
<input class="checkbox-custom" type="checkbox" id="friendica-check">
</div>
</div>
<div class="flex">
<span class="span-custom">Hubzilla:</span>
<input id="hubzilla-host" class="text-custom" type="text">
<div class="bg-gray-500">
<input class="checkbox-custom" type="checkbox" id="hubzilla-check">
</div>
</div>
<div class="flex">
<span class="span-custom">Socialhome</span>
<input id="socialhome-host" class="text-custom" type="text">
<div class="bg-gray-500">
<input class="checkbox-custom" type="checkbox" id="socialhome-check">
</div>
</div>
<div class="flex">
<span class="span-custom">Lemmy:</span>
<input id="lemmy-host" class="text-custom" type="text">
<div class="bg-gray-500">
<input class="checkbox-custom" type="checkbox" id="lemmy-check">
</div>
</div>
<div class="flex">
<span class="span-custom">XMPP:</span>
<input id="xmpp-host" class="text-custom" type="text">
<div class="bg-gray-500">
<input class="checkbox-custom" type="checkbox" id="xmpp-check">
</div>
</div>
<button class="btn-save" type="submit">Save changes</button>
</form>
<script src="../js/options.js" type="module"></script>
<script src="../js/background.js" type="module"></script>
</body>
</html>

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

Before

Width:  |  Height:  |  Size: 929 B

After

Width:  |  Height:  |  Size: 929 B

View File

Before

Width:  |  Height:  |  Size: 543 B

After

Width:  |  Height:  |  Size: 543 B

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 63 KiB

View File

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

View File

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 78 KiB

13
tailwind.config.js Normal file
View File

@ -0,0 +1,13 @@
// tailwind.config.js
module.exports = {
purge: [
'./src/**/*.html',
],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {},
plugins: [],
}