From 87eef0b2a8abf4d984a966b504985d7da073a576 Mon Sep 17 00:00:00 2001
From: Eder Moraes <54563944+edermcastro@users.noreply.github.com>
Date: Thu, 29 May 2025 23:52:48 -0300
Subject: [PATCH] first commit
---
.gitignore | 31 +
data.json | 1 +
floating.html | 74 +
floating.js | 21 +
floating_preload.js | 8 +
index.html | 140 +
js/jquery/jquery.js | 10716 ++++++++++++++++++++++++++++++++
js/jquery/jquery.min.js | 2 +
js/jquery/jquery.min.map | 1 +
js/jquery/jquery.slim.js | 8617 +++++++++++++++++++++++++
js/jquery/jquery.slim.min.js | 2 +
js/jquery/jquery.slim.min.map | 1 +
login.html | 52 +
login.js | 47 +
login_preload.js | 7 +
main.js | 619 ++
nodemon.json | 6 +
operator.html | 36 +
operator.js | 81 +
operator_preload.js | 7 +
package-lock.json | 5809 +++++++++++++++++
package.json | 49 +
preload.js | 18 +
renderer.js | 119 +
style.css | 179 +
25 files changed, 26643 insertions(+)
create mode 100644 .gitignore
create mode 100644 data.json
create mode 100644 floating.html
create mode 100644 floating.js
create mode 100644 floating_preload.js
create mode 100644 index.html
create mode 100644 js/jquery/jquery.js
create mode 100644 js/jquery/jquery.min.js
create mode 100644 js/jquery/jquery.min.map
create mode 100644 js/jquery/jquery.slim.js
create mode 100644 js/jquery/jquery.slim.min.js
create mode 100644 js/jquery/jquery.slim.min.map
create mode 100644 login.html
create mode 100644 login.js
create mode 100644 login_preload.js
create mode 100644 main.js
create mode 100644 nodemon.json
create mode 100644 operator.html
create mode 100644 operator.js
create mode 100644 operator_preload.js
create mode 100644 package-lock.json
create mode 100644 package.json
create mode 100644 preload.js
create mode 100644 renderer.js
create mode 100644 style.css
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c5809ca
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,31 @@
+npm-debug.log
+.env
+
+# Laravel 4 specific
+bootstrap/compiled.php
+app/storage/
+
+# Laravel 5 & Lumen specific
+public/storage
+public/hot
+public/.efi-cert
+storage/*.key
+.env.*.php
+.env.php
+Homestead.yaml
+Homestead.json
+
+# Rocketeer PHP task runner and deployment package. https://github.com/rocketeers/rocketeer
+.rocketeer/
+.idea/**
+storage/framework/views/**
+storage/framework/sessions/**
+storage/framework/cache/**
+storage/logs/**
+public/public/uploads/**
+public/mobile/platforms/**
+public/mobile/node_modules/**
+.DS_Store
+
+node_modules/**
+dist/**
diff --git a/data.json b/data.json
new file mode 100644
index 0000000..0637a08
--- /dev/null
+++ b/data.json
@@ -0,0 +1 @@
+[]
\ No newline at end of file
diff --git a/floating.html b/floating.html
new file mode 100644
index 0000000..40bc9e0
--- /dev/null
+++ b/floating.html
@@ -0,0 +1,74 @@
+
+
+
+
+
+ Floating Button
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/floating.js b/floating.js
new file mode 100644
index 0000000..65f0429
--- /dev/null
+++ b/floating.js
@@ -0,0 +1,21 @@
+const floatButton = document.getElementById('float-button');
+const countSpan = document.getElementById('count');
+
+// Atualiza a contagem e a cor do botão quando recebe do main process
+window.electronAPI.onUpdateCount((value) => {
+ countSpan.textContent = value;
+ // Verifica a contagem para mudar a cor
+ if (value > 0) {
+ floatButton.classList.add('has-items'); // Adiciona a classe para cor avermelhada
+ } else {
+ floatButton.classList.remove('has-items'); // Remove a classe, volta para o azul padrão
+ }
+});
+
+// Mostra a janela principal ao clicar
+floatButton.addEventListener('click', () => {
+ window.electronAPI.showMainWindow();
+});
+
+// Ajuste inicial do cursor
+floatButton.style.cursor = 'pointer';
\ No newline at end of file
diff --git a/floating_preload.js b/floating_preload.js
new file mode 100644
index 0000000..8442c32
--- /dev/null
+++ b/floating_preload.js
@@ -0,0 +1,8 @@
+const { contextBridge, ipcRenderer } = require('electron');
+
+contextBridge.exposeInMainWorld('electronAPI', {
+ onUpdateCount: (callback) => ipcRenderer.on('update-count', (_event, value) => callback(value)),
+ showMainWindow: () => ipcRenderer.send('show-main-window')
+ // Remova a linha abaixo:
+ // startDrag: (offset) => ipcRenderer.send('drag-float-window', offset)
+});
\ No newline at end of file
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..864008c
--- /dev/null
+++ b/index.html
@@ -0,0 +1,140 @@
+
+
+
+
+
+ Aguardando atendimento
+
+
+
+
+
+
+
Fila
+
+
+
+
+
+
+
+
Observações
+
Item selecionado:
+
+
+
+
+
+
Observações
+
Item selecionado:
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/js/jquery/jquery.js b/js/jquery/jquery.js
new file mode 100644
index 0000000..1a86433
--- /dev/null
+++ b/js/jquery/jquery.js
@@ -0,0 +1,10716 @@
+/*!
+ * jQuery JavaScript Library v3.7.1
+ * https://jquery.com/
+ *
+ * Copyright OpenJS Foundation and other contributors
+ * Released under the MIT license
+ * https://jquery.org/license
+ *
+ * Date: 2023-08-28T13:37Z
+ */
+( function( global, factory ) {
+
+ "use strict";
+
+ if ( typeof module === "object" && typeof module.exports === "object" ) {
+
+ // For CommonJS and CommonJS-like environments where a proper `window`
+ // is present, execute the factory and get jQuery.
+ // For environments that do not have a `window` with a `document`
+ // (such as Node.js), expose a factory as module.exports.
+ // This accentuates the need for the creation of a real `window`.
+ // e.g. var jQuery = require("jquery")(window);
+ // See ticket trac-14549 for more info.
+ module.exports = global.document ?
+ factory( global, true ) :
+ function( w ) {
+ if ( !w.document ) {
+ throw new Error( "jQuery requires a window with a document" );
+ }
+ return factory( w );
+ };
+ } else {
+ factory( global );
+ }
+
+// Pass this if window is not defined yet
+} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
+
+// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
+// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
+// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common
+// enough that all such attempts are guarded in a try block.
+"use strict";
+
+var arr = [];
+
+var getProto = Object.getPrototypeOf;
+
+var slice = arr.slice;
+
+var flat = arr.flat ? function( array ) {
+ return arr.flat.call( array );
+} : function( array ) {
+ return arr.concat.apply( [], array );
+};
+
+
+var push = arr.push;
+
+var indexOf = arr.indexOf;
+
+var class2type = {};
+
+var toString = class2type.toString;
+
+var hasOwn = class2type.hasOwnProperty;
+
+var fnToString = hasOwn.toString;
+
+var ObjectFunctionString = fnToString.call( Object );
+
+var support = {};
+
+var isFunction = function isFunction( obj ) {
+
+ // Support: Chrome <=57, Firefox <=52
+ // In some browsers, typeof returns "function" for HTML