Compare commits

...

6 Commits

Author SHA1 Message Date
mickie b359ddef7e Update to version 0.9.1 2022-01-14 03:22:10 -06:00
mickie 0798dacb01 Fix single quotes in saveButton const. 2022-01-14 02:20:15 -06:00
mickie 45dc01349d Fix CSS style in options page. 2022-01-14 02:08:47 -06:00
mickie e051e00899 Update version and permissions in manifest.json 2022-01-13 21:26:55 -06:00
mickie 5411b1d3c6 Update Supported services/protocols section. 2022-01-13 20:43:38 -06:00
mickie 49798c8bde Remove .github directory. 2022-01-13 20:30:13 -06:00
8 changed files with 45 additions and 85 deletions

3
.github/FUNDING.yml vendored
View File

@ -1,3 +0,0 @@
# These are supported funding model platforms
custom: paypal.me/davidnguyen179

View File

@ -1,50 +0,0 @@
name: 'ci/cd'
# This workflow is triggered on pushes to the repository.
on: [push, pull_request]
jobs:
test:
# Job name
name: test
# This job runs on Linux
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
id: checkout
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache node_modules
uses: actions/cache@v2
id: cache
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: |
**/node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Installing packages...🏃‍♂️ 🏃‍♂️ 🏃‍♂️
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: Running typecheck... 🩺 🔬 🔭
run: npm run code:typecheck
- name: Running eslint... 👀
run: npm run code:lint
- name: Running unit test... 🤞 🚑 💊
run: npm run test:unit -- --runInBand --coverage
- name: Trigger codecov
run: bash <(curl -s https://codecov.io/bash)
- name: Run build Chrome
run: npm run app:chrome
- name: Run build Firefox
run: npm run app:firefox
- name: Run build Edge
run: npm run app:edge

View File

@ -18,38 +18,38 @@ Simplest add-on for the fediverse. Share web pages right from the toolbar button
### Supported services/protocols:
- [ ] TODO [Bonfire](https://bonfirenetworks.org/)
- [ ] [Bonfire](https://bonfirenetworks.org/)
- [x] [Diaspora](https://diasporafoundation.org/)
- [ ] TODO [Ecko](https://magicstone.dev/) (Mastodon button)
- [ ] TODO [Epicyon](https://epicyon.net/)
- [ ] TODO [Flockingbird](https://flockingbird.social/)
- [x] [Ecko](https://magicstone.dev/) (Mastodon button)
- [ ] [Epicyon](https://epicyon.net/)
- [ ] [Flockingbird](https://flockingbird.social/)
- [x] [Friendica](https://friendi.ca/)
- [ ] TODO [Glitch](https://glitch-soc.github.io/docs/) (Mastodon button)
- [x] [Glitch](https://glitch-soc.github.io/docs/) (Mastodon button)
- [x] [Gnusocial](https://gnusocial.network/)
- [ ] TODO [GoToSocial](https://docs.gotosocial.org/en/latest/) (Mastodon button)
- [ ] TODO [Groundpolis](https://github.com/Groundpolis/Groundpolis) (Mastodon button)
- [ ] TODO [Hometown](https://github.com/hometown-fork/hometown) (Mastodon button)
- [ ] TODO [Honk](https://humungus.tedunangst.com/r/honk)
- [x] [GoToSocial](https://docs.gotosocial.org/en/latest/) (Mastodon button)
- [x] [Groundpolis](https://github.com/Groundpolis/Groundpolis) (Mastodon button)
- [x] [Hometown](https://github.com/hometown-fork/hometown) (Mastodon button)
- [ ] [Honk](https://humungus.tedunangst.com/r/honk)
- [x] [Hubzilla](https://hubzilla.org/)
- [ ] TODO [Kepi](https://gitlab.com/marnanel/chapeau) (Mastodon button)
- [ ] TODO [Ktistec](https://github.com/toddsundsted/ktistec)
- [x] [Kepi](https://gitlab.com/marnanel/chapeau) (Mastodon button)
- [ ] [Ktistec](https://github.com/toddsundsted/ktistec)
- [x] [Lemmy](https://join-lemmy.org/)
- [x] [Mastodon](https://joinmastodon.org/)
- [x] [Misskey](https://misskey-hub.net/en/) (Mastodon button)
- [ ] TODO [Misty](https://zotlabs.com/misty/) (Hubzilla button)
- [ ] TODO [Mobilizon](https://joinmobilizon.org/en/)
- [ ] TODO [NextCloud](https://nextcloud.com/)
- [x] [Misty](https://zotlabs.com/misty/) (Hubzilla button)
- [ ] [Mobilizon](https://joinmobilizon.org/en/)
- [ ] [NextCloud](https://nextcloud.com/)
- [x] [Osada](https://codeberg.org/zot/osada) (Hubzilla button)
- [ ] [Pjuu](https://pjuu.com/) *1
- [x] [Pleroma](https://pleroma.social/)
- [ ] TODO [Pump.io](http://pump.io/) *2
- [ ] TODO [Smithereen](https://github.com/grishka/Smithereen)
- [ ] [Pump.io](http://pump.io/) *2
- [ ] [Smithereen](https://github.com/grishka/Smithereen)
- [x] [Socialhome](https://socialhome.network/)
- [x] [XMPP](https://xmpp.org/)
- [x] [Zap](https://zotlabs.com/zap/) (Hubzilla button)
- *1 It doesn't have a public API
- *2 Conflicts with the API
- *2 Conflicts with the [API](https://github.com/pump-io/pump.io/blob/master/API.md)
## Contributing
@ -61,7 +61,7 @@ You can contribute in the following ways:
### Bug reports
Bug reports and feature suggestions can be submitted to [Gitlab Issues](https://gitlab.com/mickie1/share-freedom-extension/issues). Please make sure that you are not submitting duplicates, and that a similar report or request has not already been resolved or rejected in the past using the search function. Please also use descriptive, concise titles.
Bug reports and feature suggestions can be submitted to [Gitlab Issues](https://gitlab.com/mugcake/fedishare/issues). Please make sure that you are not submitting duplicates, and that a similar report or request has not already been resolved or rejected in the past using the search function. Please also use descriptive, concise titles.
### Pull request

View File

@ -1,6 +1,6 @@
{
"name": "fedishare",
"version": "0.9.0",
"version": "0.9.1",
"description": "Share the current tab on the fediverse",
"main": "background.js",
"scripts": {
@ -10,9 +10,9 @@
"code:typecheck": "./node_modules/.bin/tsc --noEmit",
"app:dist": "rimraf dist && cross-env BROWSER='firefox' webpack --config webpack/webpack.prod.js",
"app:dev": "cross-env BROWSER='firefox' webpack --config webpack/webpack.dev.js --watch",
"test:unit": "jest",
"style-dev": "postcss ./public/css/styles.css -o ./dist/css/main.css",
"style-dist": "NODE_ENV=production postcss ./public/css/styles.css -o ./dist/css/main.css"
"style:dev": "postcss ./public/css/styles.css -o ./dist/css/main.css",
"style:dist": "NODE_ENV=production postcss ./public/css/styles.css -o ./dist/css/main.css",
"test:unit": "jest"
},
"repository": {
"type": "git",

View File

@ -42,17 +42,26 @@
/* options */
.title-options {
@apply text-4xl text-center px-2 py-4 text-white;
}
.form-options {
@apply flex mb-4 gap-5;
}
.body-options {
@apply bg-fixed px-2 py-3 bg-gray-400;
}
.span-custom {
@apply text-xl text-blue-700 border border-2 font-bold rounded-l px-4 py-2 bg-white;
@apply text-xl text-green-300 border-2 font-bold rounded-l px-4 py-2 m-1 w-1/2 bg-gray-800 border-transparent;
}
.text-custom {
@apply border px-4 py-2 w-full;
@apply border px-4 py-2 m-1 ml-0 w-full border-2 border-transparent bg-gray-600 text-white;
}
.checkbox-custom {
@apply m-3;
}
.btn-save {
@apply bg-blue-500 text-xl hover:bg-pink-500 active:bg-pink-700 text-white font-bold py-2 px-4 rounded-full w-44 text-center;
@apply bg-green-500 text-xl hover:bg-green-700 active:bg-blue-700 text-white font-bold py-2 px-4 m-1 rounded w-48 text-center;
}
@tailwind utilities;

View File

@ -1,8 +1,8 @@
{
"name": "Fedishare",
"version": "0.9.0",
"version": "0.9.1",
"description": "Share the current tab on the fediverse",
"permissions": ["tabs", "activeTab", "https://*/*", "storage"],
"permissions": ["activeTab", "storage"],
"manifest_version": 2,
"browser_action": {
"default_popup": "popup.html",

View File

@ -8,11 +8,12 @@
<link href="css/main.css" rel="stylesheet">
</head>
<body class="bg-fixed px-2 py-3 bg-gradient-to-r from-blue-900 via-blue-600 to-blue-400">
<div class="text-5xl px-2 py-4 text-blue-100">Set your instance(s)</div>
<form class="grid gap-5">
<div class="root" id="root"></div>
<button class="btn-save" type="submit">Save changes</button>
<body class="body-options">
<div class="title-options">Set your instance(s)</div>
<form class="flex mb-4 gap-5">
<div class="w-full p-6">
<div class="root" id="root"></div>
</div>
</form>
<script src="options.js"></script>
</body>

View File

@ -18,6 +18,9 @@ items.forEach((value) => {
containerItems.insertAdjacentHTML('beforeend', html);
});
const saveButton = '<button class="btn-save" type="submit">Save changes</button>';
containerItems.insertAdjacentHTML('beforeend', saveButton);
function saveOptions() {
items.forEach(saveItems);
}