Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
6b3786bd86 | |||
72a1cfd471 | |||
16780cb9a3 | |||
2197759894 | |||
1c33a7aa0d | |||
c63b080ace | |||
9853ee74a1 | |||
a3006038de | |||
030677e9e3 | |||
a4071c5380 | |||
371e74ebb4 | |||
318ebc7125 | |||
ccb22bad6a | |||
00da368436 |
20
.woodpecker/build.yml
Normal file
20
.woodpecker/build.yml
Normal 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
|
|
@ -1,18 +1,5 @@
|
||||||
---
|
|
||||||
kind: secret
|
|
||||||
name: gitea_token
|
|
||||||
get:
|
|
||||||
path: odit-git-bot
|
|
||||||
name: apikey
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: kubernetes
|
|
||||||
name: build:tag
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build and package
|
- name: build and package
|
||||||
depends_on: ["clone"]
|
|
||||||
image: registry.odit.services/hub/library/node:16-alpine3.14
|
image: registry.odit.services/hub/library/node:16-alpine3.14
|
||||||
commands:
|
commands:
|
||||||
- apk add git zip -f
|
- apk add git zip -f
|
||||||
|
@ -20,12 +7,11 @@ steps:
|
||||||
- yarn build
|
- yarn build
|
||||||
- yarn build:package
|
- yarn build:package
|
||||||
- name: gitea_release
|
- name: gitea_release
|
||||||
depends_on: ["build and package"]
|
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
settings:
|
settings:
|
||||||
title: Release ${DRONE_TAG}
|
title: Release ${DRONE_TAG}
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: gitea_token
|
from_secret: odit-git-bot-apikey
|
||||||
base_url: https://git.odit.services
|
base_url: https://git.odit.services
|
||||||
files: linkylinky-chrome.zip
|
files: linkylinky-chrome.zip
|
||||||
checksum:
|
checksum:
|
||||||
|
@ -35,6 +21,6 @@ steps:
|
||||||
- sha512
|
- sha512
|
||||||
- adler32
|
- adler32
|
||||||
- crc32
|
- crc32
|
||||||
trigger:
|
|
||||||
event:
|
when:
|
||||||
- tag
|
event: tag
|
15
CHANGELOG.md
15
CHANGELOG.md
|
@ -2,9 +2,24 @@
|
||||||
|
|
||||||
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)
|
#### [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)
|
- 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)
|
- 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)
|
||||||
|
|
|
@ -60,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
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@odit/linkylinky-chrome",
|
"name": "@odit/linkylinky-chrome",
|
||||||
"version": "0.2.0",
|
"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
16
renovate.json
Normal 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"
|
||||||
|
]
|
||||||
|
}
|
|
@ -91,6 +91,15 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</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}
|
||||||
|
|
10
src/main.js
10
src/main.js
|
@ -26,7 +26,8 @@ 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").value
|
no_preview: document.getElementById("bot_toggle").checked,
|
||||||
|
clientside: document.getElementById("clientside_toggle").checked
|
||||||
};
|
};
|
||||||
|
|
||||||
if (shorturl.shortcode == "" | !shorturl.shortcode) {
|
if (shorturl.shortcode == "" | !shorturl.shortcode) {
|
||||||
|
@ -51,8 +52,11 @@ function createUrl() {
|
||||||
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("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;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -96,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");
|
||||||
});
|
});
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user