Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
systemes-dinformation
project-template
SDK-GO
Commits
ae38731f
Commit
ae38731f
authored
Apr 30, 2020
by
Nicolas Pernoud
Browse files
chore: updated fontawesome
parent
1437609c
Pipeline
#5110
passed with stages
in 3 minutes and 29 seconds
Changes
9
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
internal/models/clients.go
View file @
ae38731f
...
...
@@ -5,10 +5,23 @@ import (
"net/http"
"strconv"
"strings"
"time"
"forge.grandlyon.com/apoyen/sdk-go/pkg/auth"
)
// UserClient has many BankAccounts and one UserBanker
type
UserClient
struct
{
ID
uint
`gorm:"primary_key"`
CreatedAt
time
.
Time
`json:"-"`
UpdatedAt
time
.
Time
`json:"-"`
DeletedAt
*
time
.
Time
`json:"-"`
UserID
int
`gorm:"not null;unique"`
Name
string
UserBankerID
uint
BankAccounts
[]
BankAccount
}
// HandleClients expose the UserClients API
func
(
d
*
DataHandler
)
HandleClients
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
id
,
_
:=
strconv
.
Atoi
(
strings
.
TrimPrefix
(
r
.
URL
.
Path
,
"/api/UserClients/"
))
...
...
internal/models/models.go
View file @
ae38731f
...
...
@@ -73,18 +73,6 @@ func (d *DataHandler) ProcessAPI(w http.ResponseWriter, r *http.Request) {
}
}
// UserClient has many BankAccounts and one UserBanker
type
UserClient
struct
{
ID
uint
`gorm:"primary_key"`
CreatedAt
time
.
Time
`json:"-"`
UpdatedAt
time
.
Time
`json:"-"`
DeletedAt
*
time
.
Time
`json:"-"`
UserID
int
`gorm:"not null;unique"`
Name
string
UserBankerID
uint
BankAccounts
[]
BankAccount
}
// UserBanker has many UserClient
type
UserBanker
struct
{
ID
uint
`gorm:"primary_key"`
...
...
pkg/log/log.go
View file @
ae38731f
...
...
@@ -39,7 +39,7 @@ func init() {
// SetFile set a file to log to instead of standard output
func
SetFile
(
file
string
)
{
var
err
error
f
,
err
=
os
.
OpenFile
(
file
,
os
.
O_RDWR
|
os
.
O_CREATE
|
os
.
O_APPEND
,
06
66
)
f
,
err
=
os
.
OpenFile
(
file
,
os
.
O_RDWR
|
os
.
O_CREATE
|
os
.
O_APPEND
,
06
00
)
if
err
!=
nil
{
log
.
Fatalf
(
"error opening file: %v"
,
err
)
}
...
...
web/assets/fontawesome/brands.min.js
deleted
100644 → 0
View file @
1437609c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
web/assets/fontawesome/fontawesome.min.js
View file @
ae38731f
This diff is collapsed.
Click to expand it.
web/assets/fontawesome/solid.min.js
View file @
ae38731f
This diff is collapsed.
Click to expand it.
web/components/bankerPage/bankAccount.js
View file @
ae38731f
// Imports
import
*
as
Auth
from
"
/services/auth/auth.js
"
;
import
*
as
Messages
from
"
/services/messages/messages.js
"
;
import
{
RandomString
}
from
"
/services/common/common.js
"
;
import
*
as
Operations
from
"
/components/bankerPage/operations.js
"
;
// DOM elements
...
...
@@ -17,8 +16,6 @@ export async function mount(where, parent) {
class
BankAccount
{
constructor
(
parent
)
{
// Random id seed
this
.
prefix
=
RandomString
(
8
);
this
.
parent
=
parent
;
}
...
...
web/index.html
View file @
ae38731f
...
...
@@ -9,7 +9,6 @@
<link
rel=
"stylesheet"
href=
"assets/bulma.min.css"
/>
<link
rel=
"stylesheet"
href=
"assets/animate.css"
/>
<link
rel=
"stylesheet"
href=
"style.css"
/>
<script
defer
src=
"assets/fontawesome/brands.min.js"
></script>
<script
defer
src=
"assets/fontawesome/solid.min.js"
></script>
<script
defer
src=
"assets/fontawesome/fontawesome.min.js"
></script>
<script
defer
type=
"module"
src=
"main.js"
></script>
...
...
web/services/common/icons.js
View file @
ae38731f
/*
HOW TO UPDATE THAT LIST :
Go to https://fontawesome.com/cheatsheet
Paste the following code into the developper console :
---
var names = new Set();
var icons = document.getElementsByClassName("icon");
for (const icon of icons) {
const name = icon.getElementsByTagName("dd")[0].innerText;
names.add(name);
}
console.log(JSON.stringify(Array.from(names)));
---
*/
export
const
Icons
=
[
"
ad
"
,
"
address-book
"
,
...
...
@@ -100,6 +115,7 @@ export const Icons = [
"
bowling-ball
"
,
"
box
"
,
"
box-open
"
,
"
box-tissue
"
,
"
boxes
"
,
"
braille
"
,
"
brain
"
,
...
...
@@ -258,6 +274,7 @@ export const Icons = [
"
dice-two
"
,
"
digital-tachograph
"
,
"
directions
"
,
"
disease
"
,
"
divide
"
,
"
dizzy
"
,
"
dna
"
,
...
...
@@ -309,6 +326,7 @@ export const Icons = [
"
fan
"
,
"
fast-backward
"
,
"
fast-forward
"
,
"
faucet
"
,
"
fax
"
,
"
feather
"
,
"
feather-alt
"
,
...
...
@@ -413,7 +431,9 @@ export const Icons = [
"
hamsa
"
,
"
hand-holding
"
,
"
hand-holding-heart
"
,
"
hand-holding-medical
"
,
"
hand-holding-usd
"
,
"
hand-holding-water
"
,
"
hand-lizard
"
,
"
hand-middle-finger
"
,
"
hand-paper
"
,
...
...
@@ -425,10 +445,14 @@ export const Icons = [
"
hand-pointer
"
,
"
hand-rock
"
,
"
hand-scissors
"
,
"
hand-sparkles
"
,
"
hand-spock
"
,
"
hands
"
,
"
hands-helping
"
,
"
hands-wash
"
,
"
handshake
"
,
"
handshake-alt-slash
"
,
"
handshake-slash
"
,
"
hanukiah
"
,
"
hard-hat
"
,
"
hashtag
"
,
...
...
@@ -436,6 +460,10 @@ export const Icons = [
"
hat-cowboy-side
"
,
"
hat-wizard
"
,
"
hdd
"
,
"
head-side-cough
"
,
"
head-side-cough-slash
"
,
"
head-side-mask
"
,
"
head-side-virus
"
,
"
heading
"
,
"
headphones
"
,
"
headphones-alt
"
,
...
...
@@ -456,6 +484,7 @@ export const Icons = [
"
hospital
"
,
"
hospital-alt
"
,
"
hospital-symbol
"
,
"
hospital-user
"
,
"
hot-tub
"
,
"
hotdog
"
,
"
hotel
"
,
...
...
@@ -464,6 +493,7 @@ export const Icons = [
"
hourglass-half
"
,
"
hourglass-start
"
,
"
house-damage
"
,
"
house-user
"
,
"
hryvnia
"
,
"
i-cursor
"
,
"
ice-cream
"
,
...
...
@@ -497,6 +527,7 @@ export const Icons = [
"
language
"
,
"
laptop
"
,
"
laptop-code
"
,
"
laptop-house
"
,
"
laptop-medical
"
,
"
laugh
"
,
"
laugh-beam
"
,
...
...
@@ -526,6 +557,8 @@ export const Icons = [
"
long-arrow-alt-up
"
,
"
low-vision
"
,
"
luggage-cart
"
,
"
lungs
"
,
"
lungs-virus
"
,
"
magic
"
,
"
magnet
"
,
"
mail-bulk
"
,
...
...
@@ -616,6 +649,7 @@ export const Icons = [
"
pen-square
"
,
"
pencil-alt
"
,
"
pencil-ruler
"
,
"
people-arrows
"
,
"
people-carry
"
,
"
pepper-hot
"
,
"
percent
"
,
...
...
@@ -635,6 +669,7 @@ export const Icons = [
"
plane
"
,
"
plane-arrival
"
,
"
plane-departure
"
,
"
plane-slash
"
,
"
play
"
,
"
play-circle
"
,
"
plug
"
,
...
...
@@ -658,6 +693,8 @@ export const Icons = [
"
print
"
,
"
procedures
"
,
"
project-diagram
"
,
"
pump-medical
"
,
"
pump-soap
"
,
"
puzzle-piece
"
,
"
qrcode
"
,
"
question
"
,
...
...
@@ -720,6 +757,7 @@ export const Icons = [
"
share-square
"
,
"
shekel-sign
"
,
"
shield-alt
"
,
"
shield-virus
"
,
"
ship
"
,
"
shipping-fast
"
,
"
shoe-prints
"
,
...
...
@@ -755,6 +793,7 @@ export const Icons = [
"
snowflake
"
,
"
snowman
"
,
"
snowplow
"
,
"
soap
"
,
"
socks
"
,
"
solar-panel
"
,
"
sort
"
,
...
...
@@ -796,8 +835,11 @@ export const Icons = [
"
stop
"
,
"
stop-circle
"
,
"
stopwatch
"
,
"
stopwatch-20
"
,
"
store
"
,
"
store-alt
"
,
"
store-alt-slash
"
,
"
store-slash
"
,
"
stream
"
,
"
street-view
"
,
"
strikethrough
"
,
...
...
@@ -858,6 +900,7 @@ export const Icons = [
"
toggle-on
"
,
"
toilet
"
,
"
toilet-paper
"
,
"
toilet-paper-slash
"
,
"
toolbox
"
,
"
tools
"
,
"
tooth
"
,
...
...
@@ -933,6 +976,9 @@ export const Icons = [
"
video
"
,
"
video-slash
"
,
"
vihara
"
,
"
virus
"
,
"
virus-slash
"
,
"
viruses
"
,
"
voicemail
"
,
"
volleyball-ball
"
,
"
volume-down
"
,
...
...
@@ -962,5 +1008,5 @@ export const Icons = [
"
wrench
"
,
"
x-ray
"
,
"
yen-sign
"
,
"
yin-yang
"
"
yin-yang
"
,
];
Write
Preview
Supports
Markdown
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