Skip to content
Snippets Groups Projects
Commit ae38731f authored by Nicolas Pernoud's avatar Nicolas Pernoud
Browse files

chore: updated fontawesome

parent 1437609c
No related branches found
No related tags found
1 merge request!2Code review
Pipeline #5110 passed
...@@ -5,10 +5,23 @@ import ( ...@@ -5,10 +5,23 @@ import (
"net/http" "net/http"
"strconv" "strconv"
"strings" "strings"
"time"
"forge.grandlyon.com/apoyen/sdk-go/pkg/auth" "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 // HandleClients expose the UserClients API
func (d *DataHandler) HandleClients(w http.ResponseWriter, r *http.Request) { func (d *DataHandler) HandleClients(w http.ResponseWriter, r *http.Request) {
id, _ := strconv.Atoi(strings.TrimPrefix(r.URL.Path, "/api/UserClients/")) id, _ := strconv.Atoi(strings.TrimPrefix(r.URL.Path, "/api/UserClients/"))
......
...@@ -73,18 +73,6 @@ func (d *DataHandler) ProcessAPI(w http.ResponseWriter, r *http.Request) { ...@@ -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 // UserBanker has many UserClient
type UserBanker struct { type UserBanker struct {
ID uint `gorm:"primary_key"` ID uint `gorm:"primary_key"`
......
...@@ -39,7 +39,7 @@ func init() { ...@@ -39,7 +39,7 @@ func init() {
// SetFile set a file to log to instead of standard output // SetFile set a file to log to instead of standard output
func SetFile(file string) { func SetFile(file string) {
var err error var err error
f, err = os.OpenFile(file, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666) f, err = os.OpenFile(file, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0600)
if err != nil { if err != nil {
log.Fatalf("error opening file: %v", err) log.Fatalf("error opening file: %v", err)
} }
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
This diff is collapsed.
This diff is collapsed.
// Imports // Imports
import * as Auth from "/services/auth/auth.js"; import * as Auth from "/services/auth/auth.js";
import * as Messages from "/services/messages/messages.js"; import * as Messages from "/services/messages/messages.js";
import { RandomString } from "/services/common/common.js";
import * as Operations from "/components/bankerPage/operations.js"; import * as Operations from "/components/bankerPage/operations.js";
// DOM elements // DOM elements
...@@ -17,8 +16,6 @@ export async function mount(where, parent) { ...@@ -17,8 +16,6 @@ export async function mount(where, parent) {
class BankAccount { class BankAccount {
constructor(parent) { constructor(parent) {
// Random id seed
this.prefix = RandomString(8);
this.parent = parent; this.parent = parent;
} }
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
<link rel="stylesheet" href="assets/bulma.min.css" /> <link rel="stylesheet" href="assets/bulma.min.css" />
<link rel="stylesheet" href="assets/animate.css" /> <link rel="stylesheet" href="assets/animate.css" />
<link rel="stylesheet" href="style.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/solid.min.js"></script>
<script defer src="assets/fontawesome/fontawesome.min.js"></script> <script defer src="assets/fontawesome/fontawesome.min.js"></script>
<script defer type="module" src="main.js"></script> <script defer type="module" src="main.js"></script>
......
/*
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 = [ export const Icons = [
"ad", "ad",
"address-book", "address-book",
...@@ -100,6 +115,7 @@ export const Icons = [ ...@@ -100,6 +115,7 @@ export const Icons = [
"bowling-ball", "bowling-ball",
"box", "box",
"box-open", "box-open",
"box-tissue",
"boxes", "boxes",
"braille", "braille",
"brain", "brain",
...@@ -258,6 +274,7 @@ export const Icons = [ ...@@ -258,6 +274,7 @@ export const Icons = [
"dice-two", "dice-two",
"digital-tachograph", "digital-tachograph",
"directions", "directions",
"disease",
"divide", "divide",
"dizzy", "dizzy",
"dna", "dna",
...@@ -309,6 +326,7 @@ export const Icons = [ ...@@ -309,6 +326,7 @@ export const Icons = [
"fan", "fan",
"fast-backward", "fast-backward",
"fast-forward", "fast-forward",
"faucet",
"fax", "fax",
"feather", "feather",
"feather-alt", "feather-alt",
...@@ -413,7 +431,9 @@ export const Icons = [ ...@@ -413,7 +431,9 @@ export const Icons = [
"hamsa", "hamsa",
"hand-holding", "hand-holding",
"hand-holding-heart", "hand-holding-heart",
"hand-holding-medical",
"hand-holding-usd", "hand-holding-usd",
"hand-holding-water",
"hand-lizard", "hand-lizard",
"hand-middle-finger", "hand-middle-finger",
"hand-paper", "hand-paper",
...@@ -425,10 +445,14 @@ export const Icons = [ ...@@ -425,10 +445,14 @@ export const Icons = [
"hand-pointer", "hand-pointer",
"hand-rock", "hand-rock",
"hand-scissors", "hand-scissors",
"hand-sparkles",
"hand-spock", "hand-spock",
"hands", "hands",
"hands-helping", "hands-helping",
"hands-wash",
"handshake", "handshake",
"handshake-alt-slash",
"handshake-slash",
"hanukiah", "hanukiah",
"hard-hat", "hard-hat",
"hashtag", "hashtag",
...@@ -436,6 +460,10 @@ export const Icons = [ ...@@ -436,6 +460,10 @@ export const Icons = [
"hat-cowboy-side", "hat-cowboy-side",
"hat-wizard", "hat-wizard",
"hdd", "hdd",
"head-side-cough",
"head-side-cough-slash",
"head-side-mask",
"head-side-virus",
"heading", "heading",
"headphones", "headphones",
"headphones-alt", "headphones-alt",
...@@ -456,6 +484,7 @@ export const Icons = [ ...@@ -456,6 +484,7 @@ export const Icons = [
"hospital", "hospital",
"hospital-alt", "hospital-alt",
"hospital-symbol", "hospital-symbol",
"hospital-user",
"hot-tub", "hot-tub",
"hotdog", "hotdog",
"hotel", "hotel",
...@@ -464,6 +493,7 @@ export const Icons = [ ...@@ -464,6 +493,7 @@ export const Icons = [
"hourglass-half", "hourglass-half",
"hourglass-start", "hourglass-start",
"house-damage", "house-damage",
"house-user",
"hryvnia", "hryvnia",
"i-cursor", "i-cursor",
"ice-cream", "ice-cream",
...@@ -497,6 +527,7 @@ export const Icons = [ ...@@ -497,6 +527,7 @@ export const Icons = [
"language", "language",
"laptop", "laptop",
"laptop-code", "laptop-code",
"laptop-house",
"laptop-medical", "laptop-medical",
"laugh", "laugh",
"laugh-beam", "laugh-beam",
...@@ -526,6 +557,8 @@ export const Icons = [ ...@@ -526,6 +557,8 @@ export const Icons = [
"long-arrow-alt-up", "long-arrow-alt-up",
"low-vision", "low-vision",
"luggage-cart", "luggage-cart",
"lungs",
"lungs-virus",
"magic", "magic",
"magnet", "magnet",
"mail-bulk", "mail-bulk",
...@@ -616,6 +649,7 @@ export const Icons = [ ...@@ -616,6 +649,7 @@ export const Icons = [
"pen-square", "pen-square",
"pencil-alt", "pencil-alt",
"pencil-ruler", "pencil-ruler",
"people-arrows",
"people-carry", "people-carry",
"pepper-hot", "pepper-hot",
"percent", "percent",
...@@ -635,6 +669,7 @@ export const Icons = [ ...@@ -635,6 +669,7 @@ export const Icons = [
"plane", "plane",
"plane-arrival", "plane-arrival",
"plane-departure", "plane-departure",
"plane-slash",
"play", "play",
"play-circle", "play-circle",
"plug", "plug",
...@@ -658,6 +693,8 @@ export const Icons = [ ...@@ -658,6 +693,8 @@ export const Icons = [
"print", "print",
"procedures", "procedures",
"project-diagram", "project-diagram",
"pump-medical",
"pump-soap",
"puzzle-piece", "puzzle-piece",
"qrcode", "qrcode",
"question", "question",
...@@ -720,6 +757,7 @@ export const Icons = [ ...@@ -720,6 +757,7 @@ export const Icons = [
"share-square", "share-square",
"shekel-sign", "shekel-sign",
"shield-alt", "shield-alt",
"shield-virus",
"ship", "ship",
"shipping-fast", "shipping-fast",
"shoe-prints", "shoe-prints",
...@@ -755,6 +793,7 @@ export const Icons = [ ...@@ -755,6 +793,7 @@ export const Icons = [
"snowflake", "snowflake",
"snowman", "snowman",
"snowplow", "snowplow",
"soap",
"socks", "socks",
"solar-panel", "solar-panel",
"sort", "sort",
...@@ -796,8 +835,11 @@ export const Icons = [ ...@@ -796,8 +835,11 @@ export const Icons = [
"stop", "stop",
"stop-circle", "stop-circle",
"stopwatch", "stopwatch",
"stopwatch-20",
"store", "store",
"store-alt", "store-alt",
"store-alt-slash",
"store-slash",
"stream", "stream",
"street-view", "street-view",
"strikethrough", "strikethrough",
...@@ -858,6 +900,7 @@ export const Icons = [ ...@@ -858,6 +900,7 @@ export const Icons = [
"toggle-on", "toggle-on",
"toilet", "toilet",
"toilet-paper", "toilet-paper",
"toilet-paper-slash",
"toolbox", "toolbox",
"tools", "tools",
"tooth", "tooth",
...@@ -933,6 +976,9 @@ export const Icons = [ ...@@ -933,6 +976,9 @@ export const Icons = [
"video", "video",
"video-slash", "video-slash",
"vihara", "vihara",
"virus",
"virus-slash",
"viruses",
"voicemail", "voicemail",
"volleyball-ball", "volleyball-ball",
"volume-down", "volume-down",
...@@ -962,5 +1008,5 @@ export const Icons = [ ...@@ -962,5 +1008,5 @@ export const Icons = [
"wrench", "wrench",
"x-ray", "x-ray",
"yen-sign", "yen-sign",
"yin-yang" "yin-yang",
]; ];
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment