Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
A
avatar-handler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
avatar-handler
Commits
0421d229
Commit
0421d229
authored
Nov 10, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rework imagmagick
parent
fdf719a9
Pipeline
#6728
failed with stages
in 15 seconds
Changes
6
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13956 additions
and
4528 deletions
+13956
-4528
Dockerfile
Dockerfile
+1
-1
package-lock.json
package-lock.json
+13949
-4520
package.json
package.json
+4
-4
src/avatar.ts
src/avatar.ts
+1
-1
src/imagemagick-native-12.d.ts
src/imagemagick-native-12.d.ts
+0
-1
src/worker.ts
src/worker.ts
+1
-1
No files found.
Dockerfile
View file @
0421d229
FROM
node:
12-buster
-slim
FROM
node:
bullseye
-slim
RUN
apt update
&&
apt
-y
install
libmagick++-dev python3 build-essential mariadb-client-10.3
&&
rm
-rf
/tmp/
*
/var/tmp/
*
/var/lib/apt/lists/
*
RUN
apt update
&&
apt
-y
install
libmagick++-dev python3 build-essential mariadb-client-10.3
&&
rm
-rf
/tmp/
*
/var/tmp/
*
/var/lib/apt/lists/
*
...
...
package-lock.json
View file @
0421d229
This diff is collapsed.
Click to expand it.
package.json
View file @
0421d229
...
@@ -20,13 +20,11 @@
...
@@ -20,13 +20,11 @@
"test:coverage"
:
"npm run test -- --coverage"
"test:coverage"
:
"npm run test -- --coverage"
},
},
"dependencies"
:
{
"dependencies"
:
{
"
@types/gm
"
:
"
^1.18.9
"
,
"
@xzeldon/imagemagick-native
"
:
"
^1.9.5
"
,
"
@types/underscore
"
:
"
^1.10.23
"
,
"
axios
"
:
"
^0.24.0
"
,
"
axios
"
:
"
^0.20.0
"
,
"
cookie-parser
"
:
"
~1.4.4
"
,
"
cookie-parser
"
:
"
~1.4.4
"
,
"
debug
"
:
"
~2.6.9
"
,
"
debug
"
:
"
~2.6.9
"
,
"
express
"
:
"
~4.16.1
"
,
"
express
"
:
"
~4.16.1
"
,
"
imagemagick-native-12
"
:
"
^1.9.3
"
,
"
morgan
"
:
"
^1.9.1
"
,
"
morgan
"
:
"
^1.9.1
"
,
"
promise-mysql
"
:
"
^4.1.3
"
,
"
promise-mysql
"
:
"
^4.1.3
"
,
"
underscore
"
:
"
^1.11.0
"
"
underscore
"
:
"
^1.11.0
"
...
@@ -34,10 +32,12 @@
...
@@ -34,10 +32,12 @@
"devDependencies"
:
{
"devDependencies"
:
{
"
@types/cookie-parser
"
:
"
^1.4.2
"
,
"
@types/cookie-parser
"
:
"
^1.4.2
"
,
"
@types/express
"
:
"
^4.17.6
"
,
"
@types/express
"
:
"
^4.17.6
"
,
"
@types/gm
"
:
"
^1.18.10
"
,
"
@types/jest
"
:
"
^25.2.3
"
,
"
@types/jest
"
:
"
^25.2.3
"
,
"
@types/morgan
"
:
"
^1.9.0
"
,
"
@types/morgan
"
:
"
^1.9.0
"
,
"
@types/node
"
:
"
^14.10.3
"
,
"
@types/node
"
:
"
^14.10.3
"
,
"
@types/supertest
"
:
"
^2.0.9
"
,
"
@types/supertest
"
:
"
^2.0.9
"
,
"
@types/underscore
"
:
"
^1.11.3
"
,
"
concurrently
"
:
"
^5.2.0
"
,
"
concurrently
"
:
"
^5.2.0
"
,
"
jest
"
:
"
^26.0.1
"
,
"
jest
"
:
"
^26.0.1
"
,
"
nodemon
"
:
"
^2.0.4
"
,
"
nodemon
"
:
"
^2.0.4
"
,
...
...
src/avatar.ts
View file @
0421d229
...
@@ -34,7 +34,7 @@ async function getAvatarURL(usernames: string[]): Promise<string> {
...
@@ -34,7 +34,7 @@ async function getAvatarURL(usernames: string[]): Promise<string> {
async
function
getURLFromUsername
(
username
:
string
)
{
async
function
getURLFromUsername
(
username
:
string
)
{
//const possibleNames = await getRealUsername(username);
//const possibleNames = await getRealUsername(username);
return
await
getAvatarURL
([
username
]);
return
getAvatarURL
([
username
]);
}
}
interface
QueryResult
{
interface
QueryResult
{
...
...
src/imagemagick-native-12.d.ts
deleted
100644 → 0
View file @
fdf719a9
declare
module
'
imagemagick-native-12
'
;
src/worker.ts
View file @
0421d229
import
{
Processor
}
from
"
./processor
"
;
import
{
Processor
}
from
"
./processor
"
;
import
magick
from
"
imagemagick-native-12
"
;
import
magick
from
"
@xzeldon/imagemagick-native
"
;
import
{
CutData
}
from
"
./utility
"
;
import
{
CutData
}
from
"
./utility
"
;
import
cluster
from
"
cluster
"
;
import
cluster
from
"
cluster
"
;
import
util
from
"
util
"
;
import
util
from
"
util
"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment