瀏覽代碼

Continue working add autocomplete by google to backend

Cixo Develop 5 月之前
父節點
當前提交
73a9c2a440
共有 4 個文件被更改,包括 14 次插入82 次删除
  1. 13 1
      .gitignore
  2. 0 1
      006-resources.py
  3. 0 79
      \\
  4. 1 1
      maketool

+ 13 - 1
.gitignore

@@ -1,3 +1,16 @@
+# Backups
+*.bak
+*.bak/
+
+# Images
+covers/*
+
+# Config files
+users.json
+config.json
+database.db
+database.db.bak
+
 # ---> Python
 # Byte-compiled / optimized / DLL files
 __pycache__/
@@ -290,7 +303,6 @@ _Pvt_Extensions
 [Ii]nclude
 [Ll]ib
 [Ll]ocal
-[Ss]cripts
 pyvenv.cfg
 pip-selfcheck.json
 

+ 0 - 1
006-resources.py

@@ -1 +0,0 @@
-{"database_uri": "sqlite:///database.db", "users_file": "users.json"}

+ 0 - 79
\\

@@ -1,79 +0,0 @@
-import { fullscreen } from "./fullscreen.js";
-
-export class product_adder extends fullscreen {
-    _build_node() {
-        const container = document.createElement("div");
-        container.classList.add("product-adder");
-
-        const label_name = document.createElement("label");
-        label_name.setAttribute("for", "name");
-        label_name.textContent = "Name:";
-
-        const name = document.createElement("input");
-        name.type = "text";
-        name.id = "name";
-        name.name = "name";
-        name.placeholder = "Sample...";
-
-        const label_description = document.createElement("label");
-        label_description.setAttribute("for", "description");
-        label_description.textContent = "Description:";
-
-        const description = document.createElement("input");
-        description.type = "text";
-        description.id = "description";
-        description.name = "description";
-        description.placeholder = "This is exa...";
-
-        const label_author = document.createElement("label");
-        label_author.setAttribute("for", "author");
-        label_author.textContent = "Author:";
-
-        const author = document.createElement("input");
-        author.type = "text";
-        author.id = "author";
-        author.name = "author";
-        author.placeholder = "John Snow...";
-
-        const label_barcode = document.createElement("label");
-        label_barcode.setAttribute("for", "barcode");
-        label_barcode.textContent = "Barcode:";
-
-        const barcode = document.createElement("input");
-        barcode.type = "number";
-        barcode.id = "barcode";
-        barcode.name = "barcode";
-        barcode.placeholder = "Enter EAN-12...";
-
-        const label_stock_count = document.createElement("label");
-        label_stock_count.setAttribute("for", "stock-count");
-        label_stock_count.textContent = "On stock:";
-
-        const stock_count = document.createElement("input");
-        stock_count.type = "number";
-        stock_count.id = "stock-count";
-        stock_count.name = "stock-count";
-        stock_count.placeholder = "20...";
-
-        const button = document.createElement("button");
-        button.type = "submit";
-        button.id = "add";
-        button.name = "add";
-        button.className = "material-icons";
-        button.textContent = "add";
-
-        container.appendChild(label_name);
-        container.appendChild(name);
-        container.appendChild(label_description);
-        container.appendChild(description);
-        container.appendChild(label_author);
-        container.appendChild(author);
-        container.appendChild(label_barcode);
-        container.appendChild(barcode);
-        container.appendChild(label_stock_count);
-        container.appendChild(stock_count);
-        container.appendChild(button);
-
-        return container;
-    }
-}

+ 1 - 1
maketool

@@ -1 +1 @@
-Subproject commit f90cef46cf5b2587acc1cba4e0a432cda8b4e34f
+Subproject commit 860204b2d674c08e98ae8ab598877c5f763c2bb2