Compare commits
56 commits
da95b803a3
...
8aa50937ad
Author | SHA1 | Date | |
---|---|---|---|
8aa50937ad | |||
969c1f9ee9 | |||
854874ecc0 | |||
536eb79a1b | |||
719db9f611 | |||
68868a69fa | |||
0c6bf61358 | |||
109439924b | |||
354f377589 | |||
6abdb8670f | |||
4c8966b496 | |||
81b16a6408 | |||
74f9499f08 | |||
b868602ddf | |||
d928040128 | |||
fe958fa1fe | |||
ac128dd20d | |||
888e44c1a3 | |||
bfc6e7d31b | |||
9047b3d355 | |||
41fb43a6c6 | |||
8826324152 | |||
bb507b4471 | |||
3cb6cbb030 | |||
8577506750 | |||
8d7d527dbb | |||
ebe1f6e6a2 | |||
1ba0e810d7 | |||
cf3bc045a0 | |||
dea5a5535f | |||
7a50a8cffb | |||
f3a85b12f8 | |||
be39488d3b | |||
00f801cc7f | |||
cdb4c11680 | |||
8dc9664f8a | |||
c4a0bfcc6f | |||
a62f8d53f5 | |||
bf8f645c25 | |||
675b5c9a7e | |||
4ba9e7a390 | |||
003283e0f5 | |||
711664e135 | |||
91e98b19db | |||
de7cbfa991 | |||
b69a690969 | |||
c19cee423e | |||
37dd31b3aa | |||
83b02c7eb6 | |||
0e21a8adb6 | |||
45cafda543 | |||
b774c997da | |||
19b99919d2 | |||
c5f556a901 | |||
95aa3009dc | |||
d03e0b2987 |
11 changed files with 132 additions and 92 deletions
9
.github/workflows/deploy.yml
vendored
9
.github/workflows/deploy.yml
vendored
|
@ -4,20 +4,13 @@ on: workflow_dispatch
|
|||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: antville
|
||||
|
||||
environment:
|
||||
name: p3k.org
|
||||
url: https://blog.p3k.org
|
||||
|
||||
steps:
|
||||
- name: Set up SSH agent
|
||||
uses: antville/helma/.github/actions/ssh@helma-🐜
|
||||
with:
|
||||
config: ${{ vars.SSH_CONFIG }}
|
||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
known-hosts: ${{ vars.SSH_KNOWN_HOSTS }}
|
||||
|
||||
- name: Copy files to production server
|
||||
run: ssh staging-server deploy-antville
|
||||
|
||||
|
|
40
.github/workflows/renovate.yml
vendored
Normal file
40
.github/workflows/renovate.yml
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
name: Run Renovate
|
||||
|
||||
on: workflow_dispatch
|
||||
|
||||
#on:
|
||||
# schedule:
|
||||
# - cron: "42 * * * *"
|
||||
|
||||
jobs:
|
||||
renovate:
|
||||
runs-on: antville
|
||||
|
||||
steps:
|
||||
- name: Run Renovate
|
||||
run: npx renovate
|
||||
env:
|
||||
# Renovate is using this token to retrieve release notes
|
||||
GITHUB_COM_TOKEN: ${{ secrets.renovate_github_com_token }}
|
||||
# See <https://docs.renovatebot.com/troubleshooting/#log-debug-levels>
|
||||
LOG_LEVEL: info # debug | info | warn | error | fatal
|
||||
RENOVATE_AUTODISCOVER: 'true'
|
||||
RENOVATE_CONFIG_FILE: /home/runner/renovate.json
|
||||
RENOVATE_ENDPOINT: ${{ github.api_url }}
|
||||
RENOVATE_GIT_AUTHOR: Renovate Bot <mail+renovate@antville.org>
|
||||
#RENOVATE_GIT_IGNORED_AUTHORS:
|
||||
# - 29139614+renovate[bot]@users.noreply.github.com
|
||||
RENOVATE_IGNORE_PR_AUTHOR: 'true'
|
||||
RENOVATE_LOG_FILE: renovate-log.ndjson
|
||||
RENOVATE_LOG_FILE_LEVEL: debug
|
||||
RENOVATE_PLATFORM: gitea
|
||||
RENOVATE_REPOSITORY_CACHE: 'enabled'
|
||||
# github.token is not working here, it lacks some permissions required by Renovate
|
||||
RENOVATE_TOKEN: ${{ secrets.renovate_token }} #${{ github.token }}
|
||||
|
||||
- name: Save log file
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: renovate-log.ndjson
|
||||
path: renovate-log.ndjson
|
||||
|
14
.github/workflows/stage.yml
vendored
14
.github/workflows/stage.yml
vendored
|
@ -4,25 +4,15 @@ on: workflow_dispatch
|
|||
|
||||
jobs:
|
||||
stage:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: antville
|
||||
|
||||
environment:
|
||||
name: stage
|
||||
url: https://antville-test.click
|
||||
url: ${{ vars.stage_url }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up SSH agent
|
||||
uses: antville/helma/.github/actions/ssh@helma-🐜
|
||||
with:
|
||||
config: ${{ vars.SSH_CONFIG }}
|
||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
known-hosts: ${{ vars.SSH_KNOWN_HOSTS }}
|
||||
|
||||
- name: Set up Gradle
|
||||
uses: gradle/actions/setup-gradle@v3
|
||||
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew :build
|
||||
|
||||
|
|
8
.github/workflows/stale.yml
vendored
8
.github/workflows/stale.yml
vendored
|
@ -1,21 +1,21 @@
|
|||
name: Mark stale issues and pull requests
|
||||
|
||||
on:
|
||||
on:
|
||||
schedule:
|
||||
- cron: "30 1 * * *"
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: antville
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- uses: actions/stale@v9
|
||||
- uses: https://github.com/actions/stale@v9
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
repo-token: ${{ github.token }}
|
||||
stale-issue-message: 'Stale issue message'
|
||||
stale-pr-message: 'Stale pull request message'
|
||||
stale-issue-label: 'no-issue-activity'
|
||||
|
|
50
.github/workflows/test.yml
vendored
Normal file
50
.github/workflows/test.yml
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
name: Test
|
||||
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: debian
|
||||
|
||||
environment:
|
||||
name: p3k.org
|
||||
url: https://blog.p3k.org
|
||||
|
||||
steps:
|
||||
- name: Do something
|
||||
run: |
|
||||
whoami
|
||||
pwd
|
||||
ls -ahl ~
|
||||
echo $SHELL
|
||||
|
||||
- name: Ping staging server
|
||||
run: ssh staging-server ping
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Run Renovate
|
||||
run: npx renovate
|
||||
env:
|
||||
# TODO:
|
||||
#GITHUB_COM_TOKEN=
|
||||
# See <https://docs.renovatebot.com/troubleshooting/#log-debug-levels>
|
||||
LOG_LEVEL: debug # debug | info | warn | error | fatal
|
||||
#RENOVATE_CONFIG_FILE: ./.gitlab/renovate.json
|
||||
RENOVATE_ENDPOINT: ${{ github.api_url }}
|
||||
RENOVATE_GIT_AUTHOR: Renovate Bot <mail+renovate@antville.org>
|
||||
RENOVATE_LOG_FILE: renovate-log.ndjson
|
||||
RENOVATE_LOG_FILE_LEVEL: debug
|
||||
RENOVATE_PLATFORM: gitea
|
||||
#RENOVATE_REPOSITORIES: $CI_PROJECT_PATH
|
||||
RENOVATE_AUTODISCOVER: 'true'
|
||||
RENOVATE_REPOSITORY_CACHE: 'enabled'
|
||||
RENOVATE_TOKEN: ${{ vars.renovate_token }} #${{ github.token }}
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Renovate log
|
||||
path: renovate-log.ndjson
|
||||
|
||||
#- name: Build with Gradle
|
||||
# run: ./gradlew :build
|
20
build.gradle
20
build.gradle
|
@ -62,15 +62,17 @@ assemble {
|
|||
dependsOn 'installJars'
|
||||
dependsOn 'buildStaticFiles'
|
||||
|
||||
copy {
|
||||
from fileTree(antvilleBuildDir).matching {
|
||||
exclude 'node_modules'
|
||||
exclude 'package.json'
|
||||
exclude 'tests'
|
||||
exclude 'tools/client'
|
||||
exclude 'tools/antclick'
|
||||
exclude 'package-lock.json'
|
||||
} into antvilleInstallDir
|
||||
doFirst {
|
||||
copy {
|
||||
from fileTree(antvilleBuildDir).matching {
|
||||
exclude 'node_modules'
|
||||
exclude 'package.json'
|
||||
exclude 'tests'
|
||||
exclude 'tools/client'
|
||||
exclude 'tools/antclick'
|
||||
exclude 'package-lock.json'
|
||||
} into antvilleInstallDir
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -682,7 +682,8 @@ function list_macro(param, id, limit) {
|
|||
return;
|
||||
}
|
||||
|
||||
var skin, collection;
|
||||
var skin;
|
||||
var collection = [];
|
||||
var max = Math.min(limit || 25, 100);
|
||||
|
||||
if (id === 'sites') {
|
||||
|
|
|
@ -402,7 +402,7 @@ void (function(url) {
|
|||
|
||||
// FIXME: compatibility
|
||||
|
||||
@base-font: <% value 'base font' default='Helvetica Neue, Helvetica, Arial, sans-serif' %>;
|
||||
@base-font: <% value 'base font' default='Helvetica Neue, Liberation Sans, Helvetica, Arial, sans-serif' %>;
|
||||
@base-font-size: <% value 'base font size' default="14px e('/') 20px" %>;
|
||||
@base-font-color: <% value 'base font color' default=#444 %>;
|
||||
|
||||
|
@ -435,7 +435,7 @@ void (function(url) {
|
|||
html, html.uk-notouch, body {
|
||||
background-color: @background;
|
||||
color: @text-color;
|
||||
font-family: @text-font;
|
||||
font: @text-font;
|
||||
}
|
||||
|
||||
body.av-16, body.av-page {
|
||||
|
@ -560,7 +560,7 @@ hr {
|
|||
}
|
||||
|
||||
&.uk-button-link {
|
||||
border: initial;
|
||||
border-color: transparent;
|
||||
|
||||
&:link, &:visited {
|
||||
color: @link-color;
|
||||
|
|
|
@ -115,7 +115,7 @@ function openPopup(img, width, height) {
|
|||
<% value 'muted color' #999999 %>
|
||||
<% value 'hover color' #d50000 %>
|
||||
<% value 'link color' #ff4040 %>
|
||||
<% value 'text font' 'Helvetica, Arial, sans-serif' %>
|
||||
<% value 'title font' 'Helvetica, Arial, sans-serif' %>
|
||||
<% value 'text font' 'Liberation Sans, Helvetica, Arial, sans-serif' %>
|
||||
<% value 'title font' 'Liberation Sans, Helvetica, Arial, sans-serif' %>
|
||||
|
||||
<% #stylesheet %>
|
||||
|
|
68
package-lock.json
generated
68
package-lock.json
generated
|
@ -21,7 +21,7 @@
|
|||
"generate-license-file": "3.0.1",
|
||||
"jsdoc": "4.0.2",
|
||||
"less": "4.2.0",
|
||||
"less-plugin-clean-css": "1.5.1",
|
||||
"less-plugin-clean-css": "1.6.0",
|
||||
"npm-run-all": "4.1.5",
|
||||
"onchange": "7.1.0",
|
||||
"uglifyify": "5.0.2"
|
||||
|
@ -696,16 +696,6 @@
|
|||
"@vue/reactivity": "~3.1.1"
|
||||
}
|
||||
},
|
||||
"node_modules/amdefine": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz",
|
||||
"integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==",
|
||||
"dev": true,
|
||||
"license": "BSD-3-Clause OR MIT",
|
||||
"engines": {
|
||||
"node": ">=0.4.2"
|
||||
}
|
||||
},
|
||||
"node_modules/ansi-colors": {
|
||||
"version": "4.1.3",
|
||||
"resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz",
|
||||
|
@ -1398,46 +1388,26 @@
|
|||
}
|
||||
},
|
||||
"node_modules/clean-css": {
|
||||
"version": "3.4.28",
|
||||
"resolved": "https://registry.npmjs.org/clean-css/-/clean-css-3.4.28.tgz",
|
||||
"integrity": "sha512-aTWyttSdI2mYi07kWqHi24NUU9YlELFKGOAgFzZjDN1064DMAOy2FBuoyGmkKRlXkbpXd0EVHmiVkbKhKoirTw==",
|
||||
"version": "5.3.3",
|
||||
"resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.3.tgz",
|
||||
"integrity": "sha512-D5J+kHaVb/wKSFcyyV75uCn8fiY4sV38XJoe4CUyGQ+mOU/fMVYUdH1hJC+CJQ5uY3EnW27SbJYS4X8BiLrAFg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"commander": "2.8.x",
|
||||
"source-map": "0.4.x"
|
||||
},
|
||||
"bin": {
|
||||
"cleancss": "bin/cleancss"
|
||||
"source-map": "~0.6.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/clean-css/node_modules/commander": {
|
||||
"version": "2.8.1",
|
||||
"resolved": "https://registry.npmjs.org/commander/-/commander-2.8.1.tgz",
|
||||
"integrity": "sha512-+pJLBFVk+9ZZdlAOB5WuIElVPPth47hILFkmGym57aq8kwxsowvByvB0DHs1vQAhyMZzdcpTtF0VDKGkSDR4ZQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"graceful-readlink": ">= 1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.6.x"
|
||||
"node": ">= 10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/clean-css/node_modules/source-map": {
|
||||
"version": "0.4.4",
|
||||
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz",
|
||||
"integrity": "sha512-Y8nIfcb1s/7DcobUz1yOO1GSp7gyL+D9zLHDehT7iRESqGSxjJ448Sg7rvfgsRJCnKLdSl11uGf0s9X80cH0/A==",
|
||||
"version": "0.6.1",
|
||||
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
||||
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
||||
"dev": true,
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": {
|
||||
"amdefine": ">=0.0.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.8.0"
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/clean-stack": {
|
||||
|
@ -2665,13 +2635,6 @@
|
|||
"dev": true,
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/graceful-readlink": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz",
|
||||
"integrity": "sha512-8tLu60LgxF6XpdbK8OW3FA+IfTNBn1ZHGHKF4KQbEeSkajYw5PlYJcKluntgegDPTg8UkHjpet1T82vk6TQ68w==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/has": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/has/-/has-1.0.4.tgz",
|
||||
|
@ -3682,15 +3645,16 @@
|
|||
}
|
||||
},
|
||||
"node_modules/less-plugin-clean-css": {
|
||||
"version": "1.5.1",
|
||||
"resolved": "https://registry.npmjs.org/less-plugin-clean-css/-/less-plugin-clean-css-1.5.1.tgz",
|
||||
"integrity": "sha512-Pc68AFHAEJO3aAoRvnUTW5iAiAv6y+TQsWLTTwVNqjiDno6xCvxz1AtfQl7Y0MZSpHPalFajM1EU4RB5UVINpw==",
|
||||
"version": "1.6.0",
|
||||
"resolved": "https://registry.npmjs.org/less-plugin-clean-css/-/less-plugin-clean-css-1.6.0.tgz",
|
||||
"integrity": "sha512-jwXX6WlXT57OVCXa5oBJBaJq1b4s1BOKeEEoAL2UTeEitogQWfTcBbLT/vow9pl0N0MXV8Mb4KyhTGG0YbEKyQ==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"clean-css": "^3.0.1"
|
||||
"clean-css": "5.3.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.4.2"
|
||||
"node": ">=0.10"
|
||||
}
|
||||
},
|
||||
"node_modules/less/node_modules/source-map": {
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
"generate-license-file": "3.0.1",
|
||||
"jsdoc": "4.0.2",
|
||||
"less": "4.2.0",
|
||||
"less-plugin-clean-css": "1.5.1",
|
||||
"less-plugin-clean-css": "1.6.0",
|
||||
"npm-run-all": "4.1.5",
|
||||
"onchange": "7.1.0",
|
||||
"uglifyify": "5.0.2"
|
||||
|
|
Loading…
Add table
Reference in a new issue