mirror of
https://github.com/QwIT-Development/firka-extension.git
synced 2026-06-12 11:51:39 +02:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6a5ecadbdc | ||
|
|
1bdc8b5692 | ||
|
|
aea3b20ff9 | ||
|
|
ee42a064d2 |
119
.github/workflows/build.yml
vendored
119
.github/workflows/build.yml
vendored
@@ -1,71 +1,82 @@
|
||||
name: Package and Release Extension
|
||||
name: Build and Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- test
|
||||
inputs:
|
||||
version:
|
||||
description: 'Release version (pl. v1.0.0)'
|
||||
required: true
|
||||
default: 'v1.0.0'
|
||||
|
||||
jobs:
|
||||
build-and-release:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Get current date
|
||||
id: date
|
||||
- name: Set up build directories
|
||||
run: |
|
||||
echo "DATE=$(date +'%Y.%m.%d. %H:%M')" >> $GITHUB_ENV
|
||||
echo "DATE_FOR_ZIP=$(date +'%Y%m%d-%H%M')" >> $GITHUB_ENV
|
||||
mkdir -p build/chrome
|
||||
mkdir -p build/firefox
|
||||
|
||||
- name: Create ZIP file
|
||||
- name: Copy files – Chrome
|
||||
run: |
|
||||
zip -r "pre-firxa-${{ env.DATE_FOR_ZIP }}.zip" . -x "*.git*" "*.github*" "*.idea*"
|
||||
rsync -av \
|
||||
--exclude='.git' \
|
||||
--exclude='.gitea' \
|
||||
--exclude='README*' \
|
||||
--exclude='readme*' \
|
||||
--exclude='LICENSE*' \
|
||||
--exclude='license*' \
|
||||
--exclude='*.md' \
|
||||
--exclude='build/' \
|
||||
. build/chrome/
|
||||
|
||||
- name: Delete previous pre-release
|
||||
uses: dev-drprasad/delete-tag-and-release@v0.2.1
|
||||
with:
|
||||
delete_release: true
|
||||
tag_name: pre-release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
continue-on-error: true
|
||||
- name: Copy files – Firefox
|
||||
run: |
|
||||
rsync -av \
|
||||
--exclude='.git' \
|
||||
--exclude='.gitea' \
|
||||
--exclude='README*' \
|
||||
--exclude='readme*' \
|
||||
--exclude='LICENSE*' \
|
||||
--exclude='license*' \
|
||||
--exclude='*.md' \
|
||||
--exclude='build/' \
|
||||
. build/firefox/
|
||||
|
||||
- name: Create new pre-release
|
||||
id: create_release
|
||||
uses: softprops/action-gh-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Prepare Chrome build
|
||||
run: |
|
||||
rm -f build/chrome/manifest_fox.json
|
||||
|
||||
- name: Prepare Firefox build
|
||||
run: |
|
||||
rm -f build/firefox/manifest.json
|
||||
mv build/firefox/manifest_fox.json build/firefox/manifest.json
|
||||
|
||||
- name: Create ZIP archives
|
||||
run: |
|
||||
cd build/chrome
|
||||
zip -r ../../firka-extension-chrome-${{ github.event.inputs.version }}.zip .
|
||||
cd ../firefox
|
||||
zip -r ../../firka-extension-firefox-${{ github.event.inputs.version }}.zip .
|
||||
|
||||
- name: Create Release
|
||||
uses: actions/gitea-release@v1
|
||||
with:
|
||||
tag_name: pre-release
|
||||
release_name: Fejlesztői build
|
||||
token: ${{ secrets.GITEA_TOKEN }}
|
||||
tag_name: ${{ github.event.inputs.version }}
|
||||
release_name: ${{ github.event.inputs.version }}
|
||||
body: |
|
||||
Ez egy kiadás előtti build, amely minden egyes commit után frissül!
|
||||
A build automatikusan készült ekkor: ${{ env.DATE }}
|
||||
## Firka Extension ${{ github.event.inputs.version }}
|
||||
|
||||
### Letöltések
|
||||
- **Chrome / Chromium** – `firka-extension-chrome-${{ github.event.inputs.version }}.zip`
|
||||
- **Firefox** – `firka-extension-firefox-${{ github.event.inputs.version }}.zip`
|
||||
files: |
|
||||
firka-extension-chrome-${{ github.event.inputs.version }}.zip
|
||||
firka-extension-firefox-${{ github.event.inputs.version }}.zip
|
||||
draft: false
|
||||
prerelease: true
|
||||
|
||||
- name: Upload ZIP to release
|
||||
if: steps.create_release.outputs.upload_url != ''
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./pre-firxa-${{ env.DATE_FOR_ZIP }}.zip
|
||||
asset_name: pre-firxa-${{ env.DATE_FOR_ZIP }}.zip
|
||||
asset_content_type: application/zip
|
||||
|
||||
check-links:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Link Checker
|
||||
id: lychee
|
||||
uses: lycheeverse/lychee-action@v2
|
||||
with:
|
||||
fail: false
|
||||
prerelease: false
|
||||
|
||||
@@ -197,7 +197,7 @@ body {
|
||||
|
||||
.month-header {
|
||||
background: var(--button-secondaryFill);
|
||||
color: white;
|
||||
color: var(--text-primary);
|
||||
padding: 16px 20px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
@@ -377,7 +377,7 @@ body {
|
||||
.modal-header {
|
||||
background: var(--button-secondaryFill);
|
||||
border-bottom: 1px solid #00000000 !important;
|
||||
color: white;
|
||||
color: var(--text-primary);
|
||||
padding: 14px 18px !important;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
BIN
images/folio.png
Normal file
BIN
images/folio.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 46 KiB |
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "Firxa",
|
||||
"version": "1.4.6",
|
||||
"version": "1.4.8",
|
||||
"description": "KRÉTA webes verziójának újraírása",
|
||||
"icons": {
|
||||
"128": "images/firka_logo_128.png"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "Firxa",
|
||||
"version": "1.4.6",
|
||||
"version": "1.4.8",
|
||||
"description": "KRÉTA webes verziójának újraírása",
|
||||
"icons": {
|
||||
"128": "images/firka_logo_128.png"
|
||||
|
||||
@@ -1301,3 +1301,76 @@ h2 {
|
||||
.update-button .material-icons-round {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.folio-ad-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background: linear-gradient(135deg, #00D2A9 0%, #00b896 100%);
|
||||
border-radius: 16px;
|
||||
padding: 14px 16px;
|
||||
margin: 4px 16px 16px;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
||||
box-shadow: 0 2px 12px rgba(0, 210, 169, 0.35);
|
||||
}
|
||||
|
||||
.folio-ad-card:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 16px rgba(0, 210, 169, 0.5);
|
||||
}
|
||||
|
||||
.folio-ad-card:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.folio-ad-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.folio-ad-logo {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 10px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.folio-ad-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.folio-ad-title {
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.folio-ad-desc {
|
||||
font-size: 11px;
|
||||
color: rgba(255, 255, 255, 0.85);
|
||||
}
|
||||
|
||||
.folio-ad-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border-radius: 8px;
|
||||
padding: 6px 10px;
|
||||
}
|
||||
|
||||
.folio-ad-right .material-icons-round {
|
||||
font-size: 16px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.folio-ad-cta {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@@ -103,6 +103,19 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a href="https://folio.zan1456.dev" target="_blank" class="folio-ad-card">
|
||||
<div class="folio-ad-left">
|
||||
<img src="../images/folio.png" alt="Folio" class="folio-ad-logo">
|
||||
<div class="folio-ad-text">
|
||||
<span class="folio-ad-title">Folio</span>
|
||||
<span class="folio-ad-desc">Material You KRÉTA app Androidra</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="folio-ad-right">
|
||||
<span class="material-icons-round">download</span>
|
||||
<span class="folio-ad-cta">Letöltés</span>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="tab-content" id="tab-settings">
|
||||
|
||||
Reference in New Issue
Block a user