From 1f49515932f7ee86988f61feb5768555d358d945 Mon Sep 17 00:00:00 2001
From: paidge <paidge_cs@hotmail.com>
Date: Tue, 15 Feb 2022 18:37:20 +0100
Subject: [PATCH] improve doc and sass bootstrap imports

---
 README.md                     | 14 +++++++++++---
 assets/css/_bootstrap.scss    | 33 +++++++++++++++++++++++++++------
 graphql/doc/graphQLschema.txt | 29 +++++------------------------
 3 files changed, 43 insertions(+), 33 deletions(-)

diff --git a/README.md b/README.md
index 3c45cf6..99e6082 100644
--- a/README.md
+++ b/README.md
@@ -4,21 +4,29 @@
 
 This project needs NodeJS v16
 
-In order to use the hooks, this project needs :
+In order to use the `./utils/findMissingI18nKeys.sh` script, this project needs :
 
-- jq ([Site pour le download](https://stedolan.github.io/jq/download/))
+- jq ([Download](https://stedolan.github.io/jq/download/))
 
 ## Contribute
 
 ```bash
 $ git clone https://git.duniter.org/paidge/wotwizard-ui.git
 $ cd wotwizard-ui
+# If you want to use the git's hook to prevent commits if language strings are missing
 $ git config --local core.hooksPath .githooks/
+# To be sure to use Node 16
 $ nvm use 16
+# Create your branch
 $ git checkout -b my-branch
+# Install the dependencies of the project
 $ npm install
+# Compile the project and launch a local server for development
 $ npm run dev
 ... Development...
+# If you don't use th git's hook and want to create missing language strings
+$ npm run trad
+# Analyze build assets sizes
 $ npm run analyze
 $ git commit
 $ git push
@@ -108,5 +116,5 @@ $ npm run build
 $ npm run start
 
 # Or generate static project
-$ npm run generates
+$ npm run generate
 ```
diff --git a/assets/css/_bootstrap.scss b/assets/css/_bootstrap.scss
index 465990a..33ecee1 100644
--- a/assets/css/_bootstrap.scss
+++ b/assets/css/_bootstrap.scss
@@ -12,15 +12,27 @@
 @import "~bootstrap/scss/mixins";
 @import "~bootstrap/scss/utilities";
 
-// Layout & components
+// Layout
 @import "~bootstrap/scss/root";
 @import "~bootstrap/scss/reboot";
 @import "~bootstrap/scss/type";
-@import "~bootstrap/scss/images";
+// @import "~bootstrap/scss/images";
 @import "~bootstrap/scss/containers";
 @import "~bootstrap/scss/grid";
 @import "~bootstrap/scss/tables";
-@import "~bootstrap/scss/forms";
+
+// Forms
+// @import "~bootstrap/scss/forms/labels";
+@import "~bootstrap/scss/forms/form-text";
+@import "~bootstrap/scss/forms/form-control";
+@import "~bootstrap/scss/forms/form-select";
+@import "~bootstrap/scss/forms/form-check";
+// @import "~bootstrap/scss/forms/form-range";
+// @import "~bootstrap/scss/forms/floating-labels";
+@import "~bootstrap/scss/forms/input-group";
+// @import "~bootstrap/scss/forms/validation";
+
+// Components
 @import "~bootstrap/scss/buttons";
 @import "~bootstrap/scss/transitions";
 // @import "~bootstrap/scss/dropdown";
@@ -28,7 +40,7 @@
 @import "~bootstrap/scss/nav";
 @import "~bootstrap/scss/navbar";
 @import "~bootstrap/scss/card";
-@import "~bootstrap/scss/accordion";
+// @import "~bootstrap/scss/accordion";
 @import "~bootstrap/scss/breadcrumb";
 // @import "~bootstrap/scss/pagination";
 @import "~bootstrap/scss/badge";
@@ -42,12 +54,21 @@
 // @import "~bootstrap/scss/popover";
 // @import "~bootstrap/scss/carousel";
 // @import "~bootstrap/scss/spinners";
-@import "~bootstrap/scss/offcanvas";
+// TODO : A tester
+// @import "~bootstrap/scss/offcanvas";
 // TODO : A tester
 // @import "~bootstrap/scss/placeholders";
 
 // Helpers
-@import "~bootstrap/scss/helpers";
+// @import "~bootstrap/scss/helpers/clearfix";
+// @import "~bootstrap/scss/helpers/colored-links";
+// @import "~bootstrap/scss/helpers/ratio";
+// @import "~bootstrap/scss/helpers/position";
+// @import "~bootstrap/scss/helpers/stacks";
+// @import "~bootstrap/scss/helpers/visually-hidden";
+// @import "~bootstrap/scss/helpers/stretched-link";
+@import "~bootstrap/scss/helpers/text-truncation";
+// @import "~bootstrap/scss/helpers/vr";
 
 // Utilities
 @import "~bootstrap/scss/utilities/api";
diff --git a/graphql/doc/graphQLschema.txt b/graphql/doc/graphQLschema.txt
index bfa30d1..4f7fefd 100644
--- a/graphql/doc/graphQLschema.txt
+++ b/graphql/doc/graphQLschema.txt
@@ -36,7 +36,7 @@ type Query {
 	missEnds (group: [String!], startFromNow: Int64, period: Int64): [Identity!]!
 	
 	"'certEnds' displays the list of identities , among the reference list 'group', who are MEMBER or (possibly) MISSING and about to loose their 'ParameterName.sigQty'th oldest certification, in the increasing order of event dates (bct); 'startFromNow' gives the period (in seconds) before the beginning of the list (0 if absent or null) , and 'period' gives the period covered by the list (infinite if absent or null).  If 'group' is null or empty, the reference list is the whole Web Of Trust; if any string in 'group' is empty or doesn't refer to a known identity, it's not taken into account for the calculation, and, furthermore, if it is not empty and unknown, an error is raised"
-	certEnds (group: [String!], startFromNow: Int64, period: Int64, missingIncluded: Boolean! = true): [DatedIdentity!]!
+	certEnds (group: [String!], startFromNow: Int64, period: Int64, missingIncluded: Boolean! = true): [Identity!]!
 	
 	"'countMin' gives the first block of the blockchain"
 	countMin: Block!
@@ -178,6 +178,9 @@ type Identity {
 	
 	"Limit date of the membership application; null for REVOKED; limit date before revocation for MISSING"
 	limitDate: Int64
+
+	"Limit date of the 'ParameterName.sigQty'th oldest received certification; or null if less than 'ParameterName.sigQty' certifications received"
+	certsLimit: Int64
 	
 	"Member is leaving? null for REVOKED or NEWCOMER"
 	isLeaving: Boolean
@@ -186,7 +189,7 @@ type Identity {
 	sentry: Boolean
 	
 	"Active received certifications, sorted by increasing pubkeys"
-	received_certifications: Received_Certifications!
+	received_certifications: [Certification!]!
 	
 	"Active sent certifications, sorted by increasing pubkeys"
 	sent_certifications: [Certification!]!
@@ -229,17 +232,6 @@ type Identity {
 
 } #Identity
 
-"The association of 'Identity' and date"
-type DatedIdentity {
-	
-	"Identity"
-	id: Identity!
-	
-	"Associated date"
-	date: Int64!
-
-}
-
 "Status of an identity in WoT"
 enum Identity_Status {
 	
@@ -299,17 +291,6 @@ type IdSearchOutput {
 	
 } #IdSearchOutput
 
-"Certifications received by an identity"
-type Received_Certifications {
-	
-	"List of all valid received certifications"
-	certifications: [Certification!]!
-	
-	"Limit date of the 'ParameterName.sigQty'th oldest received certification; or null if less than 'ParameterName.sigQty' certifications received"
-	limit: Int64
-	
-} #received_Certifications
-
 "Certification sent by 'from' and received by 'to'"
 type Certification {
 	
-- 
GitLab