diff --git a/crates/sp_client/src/injecteurhtml.rs b/crates/sp_client/src/injecteurhtml.rs
new file mode 100644
index 0000000..72e0c73
--- /dev/null
+++ b/crates/sp_client/src/injecteurhtml.rs
@@ -0,0 +1,99 @@
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen]
+pub fn inject_html_create_id() -> String {
+ String::from("
+
+ ")
+}
+
+#[wasm_bindgen]
+pub fn inject_html_recover() -> String {
+ String::from("
+
+ ")
+}
+
+#[wasm_bindgen]
+pub fn inject_html_revokeimage() -> String {
+ String::from("
+
+
+
+
+

+
+
+ ")
+}
+
+#[wasm_bindgen]
+pub fn inject_html_revoke() -> String {
+ String::from("
+
+ ")
+}
diff --git a/crates/sp_client/src/lib.rs b/crates/sp_client/src/lib.rs
index e5fdf85..0ce9757 100644
--- a/crates/sp_client/src/lib.rs
+++ b/crates/sp_client/src/lib.rs
@@ -1 +1,3 @@
pub mod api;
+mod injecteurhtml;
+mod process;
diff --git a/crates/sp_client/src/process.rs b/crates/sp_client/src/process.rs
new file mode 100644
index 0000000..e4daebb
--- /dev/null
+++ b/crates/sp_client/src/process.rs
@@ -0,0 +1,10 @@
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen]
+pub fn get_process() -> Vec {
+ let mut data_process: Vec = Vec::new();
+ data_process.push(String::from("process1"));
+ data_process.push(String::from("process2"));
+ data_process.push(String::from("process3"));
+ data_process
+}
\ No newline at end of file
diff --git a/package.json b/package.json
index 0e1084a..6dabb0b 100644
--- a/package.json
+++ b/package.json
@@ -13,6 +13,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
+ "copy-webpack-plugin": "^12.0.2",
"html-webpack-plugin": "^5.6.0",
"ts-loader": "^9.5.1",
"typescript": "^5.3.3",
diff --git a/src/assets/4nk_image.png b/src/assets/4nk_image.png
new file mode 100644
index 0000000..d58693f
Binary files /dev/null and b/src/assets/4nk_image.png differ
diff --git a/src/assets/revoke.jpeg b/src/assets/revoke.jpeg
new file mode 100644
index 0000000..232dcb9
Binary files /dev/null and b/src/assets/revoke.jpeg differ
diff --git a/src/database.ts b/src/database.ts
index 3d078c5..7a8a4fe 100644
--- a/src/database.ts
+++ b/src/database.ts
@@ -9,15 +9,15 @@ class Database {
options: {}
},
AnkUser: {
- name: "4nkUser",
+ name: "user",
options: {}
},
AnkSession: {
- name: "4nkSession",
+ name: "session",
options: {}
},
AnkProcess: {
- name: "4nkProcess",
+ name: "process",
options: {}
}
}
diff --git a/src/index.html b/src/index.html
index 00b59c8..a338e3f 100644
--- a/src/index.html
+++ b/src/index.html
@@ -2,9 +2,16 @@
+
+
+
- 4NK Client
+
+ 4NK Application
+
+
+
-
+