18 Commits

Author SHA1 Message Date
dd92dd7dc6 Update dependency tailwindcss to v3.4.3
Some checks failed
renovate/artifacts Artifact file update failure
2024-03-27 20:11:37 +00:00
6b3786bd86 Merge branch 'main' of git.odit.services:kauft.es/linkylinky-chrome
Some checks failed
ci/woodpecker/push/build Pipeline failed
2023-11-04 16:48:18 +01:00
72a1cfd471 feat(ci)!: Switched to woodpecker 2023-11-04 16:47:42 +01:00
16780cb9a3 Merge pull request 'Update registry.odit.services/hub/library/node Docker tag to v18' (#6) from renovate/registry.odit.services-hub-library-node-18.x into main
Reviewed-on: #6
2022-04-30 14:11:57 +00:00
2197759894 Merge pull request 'Update dependency release-it to v15' (#7) from renovate/release-it-15.x into main
Reviewed-on: #7
2022-04-30 14:09:57 +00:00
1c33a7aa0d Update dependency release-it to v15 2022-04-30 12:47:50 +00:00
c63b080ace Update registry.odit.services/hub/library/node Docker tag to v18 2022-04-30 10:16:42 +00:00
9853ee74a1 Merge pull request 'Update dependency tailwindcss to v3' (#4) from renovate/tailwindcss-3.x into main
Reviewed-on: #4
2022-04-13 18:21:11 +00:00
a3006038de Update dependency tailwindcss to v3 2022-04-13 18:19:59 +00:00
030677e9e3 Added renovate 2022-04-13 20:05:05 +02:00
a4071c5380 🚀RELEASE 0.3.1 2021-09-27 16:03:54 +02:00
371e74ebb4 Smol js fix (fuck html attribute names) 2021-09-27 16:03:27 +02:00
318ebc7125 Readme update 4 roadmap 2021-09-25 18:51:23 +02:00
ccb22bad6a 🚀RELEASE 0.3.0 2021-09-25 18:50:16 +02:00
00da368436 Now w/ clientside switch 2021-09-25 18:50:00 +02:00
7cd4771fbc 🚀RELEASE 0.2.0 2021-09-25 18:02:22 +02:00
f389f88825 Extension users can now disable bot preview 2021-09-25 18:01:30 +02:00
595695fe4f Added "docs" images 2021-08-21 20:59:48 +02:00
15 changed files with 1678 additions and 626 deletions

20
.woodpecker/build.yml Normal file
View File

@@ -0,0 +1,20 @@
steps:
- name: build latest
image: woodpeckerci/plugin-docker-buildx
settings:
repo: registry.odit.services/customers/gutfeel-web
tags:
- latest
registry: registry.odit.services
platforms: linux/amd64,linux/arm64
cache_from: registry.odit.services/customers/gutfeel-web:latest
username:
from_secret: odit-registry-builder-username
password:
from_secret: odit-registry-builder-password
secrets:
- source: odit-npm-cache-url
target: NPM_REGISTRY_URL
when:
branch: main
event: push

View File

@@ -1,40 +1,26 @@
--- steps:
kind: secret - name: build and package
name: gitea_token image: registry.odit.services/hub/library/node:16-alpine3.14
get: commands:
path: odit-git-bot - apk add git zip -f
name: apikey - yarn
- yarn build
--- - yarn build:package
kind: pipeline - name: gitea_release
type: kubernetes image: plugins/gitea-release
name: build:tag settings:
title: Release ${DRONE_TAG}
steps: api_key:
- name: build and package from_secret: odit-git-bot-apikey
depends_on: ["clone"] base_url: https://git.odit.services
image: registry.odit.services/hub/library/node:16-alpine3.14 files: linkylinky-chrome.zip
commands: checksum:
- apk add git zip -f - md5
- yarn - sha1
- yarn build - sha256
- yarn build:package - sha512
- name: gitea_release - adler32
depends_on: ["build and package"] - crc32
image: plugins/gitea-release
settings: when:
title: Release ${DRONE_TAG} event: tag
api_key:
from_secret: gitea_token
base_url: https://git.odit.services
files: linkylinky-chrome.zip
checksum:
- md5
- sha1
- sha256
- sha512
- adler32
- crc32
trigger:
event:
- tag

View File

@@ -2,9 +2,32 @@
All notable changes to this project will be documented in this file. Dates are displayed in UTC. All notable changes to this project will be documented in this file. Dates are displayed in UTC.
#### [0.3.1](https://git.odit.services/kauft.es/linkylinky-chrome/compare/0.3.0...0.3.1)
- Smol js fix (fuck html attribute names) [`371e74e`](https://git.odit.services/kauft.es/linkylinky-chrome/commit/371e74ebb40ce07b41efebbcf3bdd6f5f507368a)
- Readme update 4 roadmap [`318ebc7`](https://git.odit.services/kauft.es/linkylinky-chrome/commit/318ebc7125f738f02d3a799d472ef2a652c629d1)
#### [0.3.0](https://git.odit.services/kauft.es/linkylinky-chrome/compare/0.2.0...0.3.0)
> 25 September 2021
- Now w/ clientside switch [`00da368`](https://git.odit.services/kauft.es/linkylinky-chrome/commit/00da368436bb03de628c002d473a220d95e4c984)
- 🚀RELEASE 0.3.0 [`ccb22ba`](https://git.odit.services/kauft.es/linkylinky-chrome/commit/ccb22bad6a5d79ead28620ebac7303896bb08b54)
#### [0.2.0](https://git.odit.services/kauft.es/linkylinky-chrome/compare/0.1.2...0.2.0)
> 25 September 2021
- Extension users can now disable bot preview [`f389f88`](https://git.odit.services/kauft.es/linkylinky-chrome/commit/f389f88825958beb3d74cb0d50a118435b40652e)
- 🚀RELEASE 0.2.0 [`7cd4771`](https://git.odit.services/kauft.es/linkylinky-chrome/commit/7cd4771fbc358ca4048cda2d1f09ffaf6d200ad3)
- Added "docs" images [`595695f`](https://git.odit.services/kauft.es/linkylinky-chrome/commit/595695fe4f4cb696a47d0e8177b51f4ded15ed5b)
#### [0.1.2](https://git.odit.services/kauft.es/linkylinky-chrome/compare/0.1.1...0.1.2) #### [0.1.2](https://git.odit.services/kauft.es/linkylinky-chrome/compare/0.1.1...0.1.2)
> 21 August 2021
- Better then resolution [`32196bb`](https://git.odit.services/kauft.es/linkylinky-chrome/commit/32196bb8f2f64dc83ef4aeeb211c26a917b7bee2) - Better then resolution [`32196bb`](https://git.odit.services/kauft.es/linkylinky-chrome/commit/32196bb8f2f64dc83ef4aeeb211c26a917b7bee2)
- 🚀RELEASE 0.1.2 [`bada398`](https://git.odit.services/kauft.es/linkylinky-chrome/commit/bada398877d99d380394eac4da8ee0b30c609022)
#### [0.1.1](https://git.odit.services/kauft.es/linkylinky-chrome/compare/0.1.0...0.1.1) #### [0.1.1](https://git.odit.services/kauft.es/linkylinky-chrome/compare/0.1.0...0.1.1)

View File

@@ -4,8 +4,12 @@
<h3 align="center">A simple, privacy focused urls shortner</h3> <h3 align="center">A simple, privacy focused urls shortner</h3>
</p> </p>
<!-- ## 👀 Preview ## 👀 Preview
TODO: --> <img height="300" src="./docs/fullpage_opened.webp">
<img height="300" src="./docs/fullpage_created.webp">
<img height="150" src="./docs/extension_opened.webp">
<img height="150" src="./docs/extension_created.webp">
<img height="400" src="./docs/fullpage_copy.webp">
## ⚡ Installation ## ⚡ Installation
- Download the `linkylinky-chrome.zip` from [the lastest release](https://git.odit.services/kauft.es/linkylinky-chrome/releases) - Download the `linkylinky-chrome.zip` from [the lastest release](https://git.odit.services/kauft.es/linkylinky-chrome/releases)
@@ -56,8 +60,10 @@ npm run build:package
- [x] Copy shorturl to deskop - [x] Copy shorturl to deskop
- [x] Notify on copy - [x] Notify on copy
- [x] Generate another url - [x] Generate another url
- [x] Disable bot crawling/chat preview on demand
- [x] Use clientside redirect w/ animation
- [x] Provide different url - [x] Provide different url
- [ ] Project Logo™ - [x] Project Logo™
- [x] Basic error handling - [x] Basic error handling
- [x] Finalize styling - [x] Finalize styling
- [x] Advanced project stuff - [x] Advanced project stuff

BIN
docs/extension_created.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
docs/extension_opened.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
docs/fullpage_closed.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
docs/fullpage_copy.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
docs/fullpage_created.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
docs/fullpage_opened.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@@ -1,6 +1,6 @@
{ {
"name": "@odit/linkylinky-chrome", "name": "@odit/linkylinky-chrome",
"version": "0.1.2", "version": "0.3.1",
"license": "MIT", "license": "MIT",
"private": false, "private": false,
"author": { "author": {
@@ -29,9 +29,9 @@
"cpx": "^1.5.0", "cpx": "^1.5.0",
"cross-zip-cli": "^1.0.0", "cross-zip-cli": "^1.0.0",
"live-server": "^1.2.1", "live-server": "^1.2.1",
"release-it": "^14.11.5", "release-it": "^15.0.0",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"tailwindcss": "^2.2.7" "tailwindcss": "^3.0.0"
}, },
"release-it": { "release-it": {
"git": { "git": {

16
renovate.json Normal file
View File

@@ -0,0 +1,16 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"dependencyDashboard": true,
"baseBranches": [
"main"
],
"addLabels": [
"status:review_needed",
"enhancement",
"priority:medium"
],
"reviewers": [
"niggl",
"philipp"
]
}

View File

@@ -13,6 +13,19 @@
} }
</style> </style>
</head> </head>
<style>
/* CHECKBOX TOGGLE SWITCH */
/* @apply rules for documentation, these do not work as inline style */
.toggle-checkbox:checked {
@apply: right-0 border-green-400;
right: 0;
border-color: #68D391;
}
.toggle-checkbox:checked + .toggle-label {
@apply: bg-green-400;
background-color: #68D391;
}
</style>
<body> <body>
<div class="p-4 flex items-center justify-center bg-white"> <div class="p-4 flex items-center justify-center bg-white">
@@ -69,6 +82,24 @@
placeholder="custom url" /> placeholder="custom url" />
</div> </div>
</div> </div>
<div id="bot_container">
<div class="mt-1 flex rounded-md shadow-sm">
<label for="toggle" class="text-base text-gray-700 pr-2">Disable Preview:</label>
<div class="relative inline-block w-10 mr-2 align-middle select-none transition duration-200 ease-in">
<input type="checkbox" name="toggle" id="bot_toggle" class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"/>
<label for="toggle" class="toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 cursor-pointer"></label>
</div>
</div>
</div>
<div id="clientside_container">
<div class="mt-1 flex rounded-md shadow-sm">
<label for="toggle" class="text-base text-gray-700 pr-2">Clientside Redirect:</label>
<div class="relative inline-block w-10 mr-2 align-middle select-none transition duration-200 ease-in">
<input type="checkbox" name="toggle" id="clientside_toggle" class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"/>
<label for="toggle" class="toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 cursor-pointer"></label>
</div>
</div>
</div>
<div class="hidden" name="shorturl_container" id="shorturl_container"> <div class="hidden" name="shorturl_container" id="shorturl_container">
<div class="inline-flex w-full" id="shorturl_copy" data-clipboard-target="#shorturl"> <div class="inline-flex w-full" id="shorturl_copy" data-clipboard-target="#shorturl">
<p name="shorturl" id="shorturl" class:bg-green-200={copied} <p name="shorturl" id="shorturl" class:bg-green-200={copied}

View File

@@ -25,7 +25,9 @@ document.getElementById("create").onclick = createUrl;
function createUrl() { function createUrl() {
let shorturl = { let shorturl = {
target: document.getElementById("target").value, target: document.getElementById("target").value,
shortcode: document.getElementById("shortcode").value shortcode: document.getElementById("shortcode").value,
no_preview: document.getElementById("bot_toggle").checked,
clientside: document.getElementById("clientside_toggle").checked
}; };
if (shorturl.shortcode == "" | !shorturl.shortcode) { if (shorturl.shortcode == "" | !shorturl.shortcode) {
@@ -49,8 +51,12 @@ function createUrl() {
document.getElementById("shorturl_container").className = ""; document.getElementById("shorturl_container").className = "";
document.getElementById("target_container").className = "hidden"; document.getElementById("target_container").className = "hidden";
document.getElementById("shortcode_container").className = "hidden"; document.getElementById("shortcode_container").className = "hidden";
document.getElementById("bot_container").classList.add("hidden");
document.getElementById("clientside_container").classList.add("hidden");
document.getElementById("create").classList.add("hidden"); document.getElementById("create").classList.add("hidden");
document.getElementById("reset").classList.remove("hidden"); document.getElementById("reset").classList.remove("hidden");
document.getElementById("bot_toggle").checked = false;
document.getElementById("clientside_toggle").checked = false;
}); });
} }
}); });
@@ -94,6 +100,10 @@ function reset() {
document.getElementById("target").value = tabs[0].url; document.getElementById("target").value = tabs[0].url;
document.getElementById("target_container").className = ""; document.getElementById("target_container").className = "";
document.getElementById("shortcode_container").className = ""; document.getElementById("shortcode_container").className = "";
document.getElementById("bot_container").classList.remove("hidden");
document.getElementById("bot_container").value = false;
document.getElementById("clientside_container").classList.remove("hidden");
document.getElementById("clientside_container").value = false;
document.getElementById("create").classList.remove("hidden"); document.getElementById("create").classList.remove("hidden");
}); });
} }

2118
yarn.lock

File diff suppressed because it is too large Load Diff