mirror of
https://github.com/Damillora/phoebe.git
synced 2025-04-16 03:33:13 +00:00
Compare commits
22 Commits
fa74ef85b6
...
5327abaf46
Author | SHA1 | Date | |
---|---|---|---|
|
5327abaf46 | ||
|
f517750d53 | ||
b0f4f18c64 | |||
|
97635a0a2b | ||
|
acfa8a12f9 | ||
|
cde0c55e08 | ||
|
98ab1b9902 | ||
03582e0b36 | |||
bbaa78b2d9 | |||
|
f778393e9b | ||
|
40a79bb7b7 | ||
|
e830d0fec3 | ||
d78132ee8b | |||
f3db0e4785 | |||
|
c24c7cb257 | ||
|
dc7717d7b1 | ||
|
4d0a10ea66 | ||
fbd3ebcb24 | |||
4cbd0bf3c4 | |||
363933011a | |||
cb80f5922b | |||
af30246132 |
18
.github/dependabot.yml
vendored
Normal file
18
.github/dependabot.yml
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
# Enable version updates for npm
|
||||
- package-ecosystem: "npm"
|
||||
# Look for `package.json` and `lock` files in the `pkg/web` directory
|
||||
directory: "/pkg/web"
|
||||
# Check the npm registry for updates every day (weekdays)
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
day: "saturday"
|
||||
time: "20:00"
|
||||
- package-ecosystem: "gomod"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
day: "saturday"
|
||||
time: "20:00"
|
2
.github/workflows/dev.yml
vendored
2
.github/workflows/dev.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: CI
|
||||
name: nightly - docker image
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
|
29
.github/workflows/pull-request.yml
vendored
Normal file
29
.github/workflows/pull-request.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: pull requests - build check
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.23'
|
||||
- name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
# either 'goreleaser' (default) or 'goreleaser-pro'
|
||||
distribution: goreleaser
|
||||
# 'latest', 'nightly', or a semver
|
||||
version: "~> v2"
|
||||
args: release --snapshot --clean
|
||||
- name: Upload assets
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: phoebe
|
||||
path: dist/*
|
5
.github/workflows/release-docker.yml
vendored
5
.github/workflows/release-docker.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: CI
|
||||
name: releases - docker image
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
@ -9,9 +9,6 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
platform: [linux/amd64,linux/arm64]
|
||||
env:
|
||||
IS_LINUX: ${{ startsWith(matrix.platform, 'linux/') && 'true' || 'false' }}
|
||||
GIT_TAG: ${{ needs.git-version.outputs.git_tag }}
|
||||
steps:
|
||||
-
|
||||
name: Set up QEMU
|
||||
|
2
.github/workflows/release-goreleaser.yml
vendored
2
.github/workflows/release-goreleaser.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: CI
|
||||
name: releases - other platforms
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
|
@ -48,6 +48,9 @@ changelog:
|
||||
exclude:
|
||||
- "^docs:"
|
||||
- "^test:"
|
||||
- "^Merge pull request"
|
||||
- "^Merge remote-tracking branch"
|
||||
- "^Merge branch"
|
||||
|
||||
release:
|
||||
header: >-
|
||||
|
@ -1,6 +1,10 @@
|
||||
# phoebe
|
||||
|
||||

|
||||

|
||||
[](https://goreportcard.com/report/github.com/Damillora/phoebe)
|
||||

|
||||
|
||||
<img src="./phoebe-logo.svg " alt="project logo" width="300" height="200">
|
||||
|
||||
a booru-style image gallery and organizer.
|
||||
|
||||
|
5
go.mod
5
go.mod
@ -1,7 +1,6 @@
|
||||
module github.com/Damillora/phoebe
|
||||
|
||||
go 1.21.0
|
||||
|
||||
toolchain go1.23.6
|
||||
|
||||
require (
|
||||
@ -9,9 +8,9 @@ require (
|
||||
github.com/dgrijalva/jwt-go v3.2.0+incompatible
|
||||
github.com/gin-contrib/cors v1.7.3
|
||||
github.com/gin-gonic/gin v1.10.0
|
||||
github.com/go-playground/validator/v10 v10.24.0
|
||||
github.com/go-playground/validator/v10 v10.25.0
|
||||
github.com/google/uuid v1.6.0
|
||||
golang.org/x/crypto v0.32.0
|
||||
golang.org/x/crypto v0.35.0
|
||||
golang.org/x/image v0.24.0
|
||||
gorm.io/driver/postgres v1.5.11
|
||||
gorm.io/gorm v1.25.12
|
||||
|
8
go.sum
8
go.sum
@ -28,8 +28,8 @@ github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/o
|
||||
github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY=
|
||||
github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY=
|
||||
github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY=
|
||||
github.com/go-playground/validator/v10 v10.24.0 h1:KHQckvo8G6hlWnrPX4NJJ+aBfWNAE/HH+qdL2cBpCmg=
|
||||
github.com/go-playground/validator/v10 v10.24.0/go.mod h1:GGzBIJMuE98Ic/kJsBXbz1x/7cByt++cQ+YOuDM5wus=
|
||||
github.com/go-playground/validator/v10 v10.25.0 h1:5Dh7cjvzR7BRZadnsVOzPhWsrwUr0nmsZJxEAnFLNO8=
|
||||
github.com/go-playground/validator/v10 v10.25.0/go.mod h1:GGzBIJMuE98Ic/kJsBXbz1x/7cByt++cQ+YOuDM5wus=
|
||||
github.com/goccy/go-json v0.10.5 h1:Fq85nIqj+gXn/S5ahsiTlK3TmC85qgirsdTP/+DeaC4=
|
||||
github.com/goccy/go-json v0.10.5/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M=
|
||||
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
|
||||
@ -94,8 +94,8 @@ github.com/ugorji/go/codec v1.2.12 h1:9LC83zGrHhuUA9l16C9AHXAqEV/2wBQ4nkvumAE65E
|
||||
github.com/ugorji/go/codec v1.2.12/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg=
|
||||
golang.org/x/arch v0.14.0 h1:z9JUEZWr8x4rR0OU6c4/4t6E6jOZ8/QBS2bBYBm4tx4=
|
||||
golang.org/x/arch v0.14.0/go.mod h1:FEVrYAQjsQXMVJ1nsMoVVXPZg6p2JE2mx8psSWTDQys=
|
||||
golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc=
|
||||
golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc=
|
||||
golang.org/x/crypto v0.35.0 h1:b15kiHdrGCHrP6LvwaQ3c03kgNhhiMgvlhxHQhmg2Xs=
|
||||
golang.org/x/crypto v0.35.0/go.mod h1:dy7dXNW32cAb/6/PRuTNsix8T+vJAqvuIy5Bli/x0YQ=
|
||||
golang.org/x/image v0.24.0 h1:AN7zRgVsbvmTfNyqIbbOraYL8mSwcKncEj8ofjgzcMQ=
|
||||
golang.org/x/image v0.24.0/go.mod h1:4b/ITuLfqYq1hqZcjofwctIhi7sZh2WaCjvsBNjjya8=
|
||||
golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0=
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
|
||||
<g transform="matrix(1,0,0,1,27.7829,6.61499)">
|
||||
<svg width="100%" height="100%" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
|
||||
<g transform="matrix(0.25,0,0,0.25,6.94573,1.65375)">
|
||||
<g transform="matrix(0.929615,0,0,0.929615,31.3145,2.05741)">
|
||||
<circle cx="487.194" cy="541.437" r="249.054" style="fill:rgb(255,221,15);stroke:rgb(74,148,232);stroke-width:10.76px;"/>
|
||||
</g>
|
||||
|
Before (image error) Size: 4.3 KiB After (image error) Size: 4.3 KiB |
@ -119,12 +119,14 @@ func uploadBlob(c *gin.Context) {
|
||||
previewFactor := float32(previewWidth) / float32(width)
|
||||
previewHeight := int(float32(height) * previewFactor)
|
||||
if width <= previewWidth {
|
||||
previewWidth = width
|
||||
previewHeight = height
|
||||
}
|
||||
thumbnailWidth := 300
|
||||
thumbnailFactor := float32(thumbnailWidth) / float32(width)
|
||||
thumbnailHeight := int(float32(height) * thumbnailFactor)
|
||||
if width <= thumbnailWidth {
|
||||
thumbnailWidth = width
|
||||
thumbnailHeight = height
|
||||
}
|
||||
|
||||
|
1230
pkg/web/package-lock.json
generated
1230
pkg/web/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "phoebe",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
@ -12,11 +12,11 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/adapter-static": "^3.0.0",
|
||||
"@sveltejs/kit": "^2.5.27",
|
||||
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
||||
"@typescript-eslint/parser": "^5.45.0",
|
||||
"eslint": "^8.28.0",
|
||||
"@sveltejs/kit": "^2.17.2",
|
||||
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
||||
"@typescript-eslint/eslint-plugin": "^8.25.0",
|
||||
"@typescript-eslint/parser": "^8.25.0",
|
||||
"eslint": "^9.21.0",
|
||||
"eslint-plugin-svelte": "^2.45.1",
|
||||
"sass-embedded": "^1.85.0",
|
||||
"svelte": "^5.0.0",
|
||||
@ -24,7 +24,7 @@
|
||||
"svelte-tags-input": "^6.0.2",
|
||||
"tslib": "^2.4.1",
|
||||
"typescript": "^5.5.0",
|
||||
"vite": "^5.4.4"
|
||||
"vite": "^6.1.1"
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user