-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'front-dargDrop' into dev
- Loading branch information
Showing
39 changed files
with
498 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
--- | ||
title: Setup do Postgres | ||
sidebar_position: 3 | ||
--- | ||
|
||
|
||
Essa implementação utiliza o GORM, uma biblioteca de mapeamento objeto-relacional para Go, para facilitar a interação com um banco de dados PostgreSQL. Cinco estruturas de dados são definidas: User, Sensor, Props, Elements, e Layout, cada uma representando entidades diferentes em um sistema. | ||
|
||
A estrutura User representa os usuários do sistema, com campos como nome, e-mail e senha, e associações com outras entidades como Directorate e Layout. Directorate representa as diretorias no sistema, enquanto Layout representa os layouts de interface. A estrutura Elements representa os elementos que compõem um layout, e Props armazena propriedades genéricas associadas a esses elementos. | ||
|
||
|
||
|
||
 | ||
|
||
1) Incorpora os campos padrão do GORM para um modelo de banco de dados | ||
2) ID é a chave primária autoincrementada única do usuário | ||
3) Name representa o nome do usuário | ||
4) Email é o endereço de e-mail do usuário | ||
5) Password é a senha do usuário | ||
6) Role é o papel do usuário, com um valor padrão de 1 | ||
7) DirectorateRefer é uma referência à diretoria do usuário | ||
8) Directorate é a diretoria à qual o usuário pertence | ||
9) LayoutRefer é uma referência ao layout do usuário | ||
10) Layout é o layout associado ao usuário | ||
|
||
|
||
 | ||
|
||
1) Incorpora os campos padrão do GORM para um modelo de banco de dados | ||
2) ID é a chave primária autoincrementada única | ||
3) Directorate representa o nome da diretoria | ||
|
||
|
||
 | ||
|
||
1) Incorpora os campos padrão do GORM para um modelo de banco de dados | ||
2) ID é a chave primária autoincrementada única do elemento | ||
3) Name é o nome do elemento | ||
4) PropsRefer é uma referência aos atributos (props) do elemento | ||
5) Props é a estrutura de atributos associada ao elemento | ||
|
||
|
||
|
||
 | ||
1) Incorpora os campos padrão do GORM para um modelo de banco de dados | ||
2) ID é a chave primária autoincrementada única do atributo | ||
3) Value é o valor do atributo | ||
|
||
 | ||
1) Incorpora os campos padrão do GORM para um modelo de banco de dados | ||
2) ID é a chave primária do layout | ||
3) ElementsRefer é uma referência aos elementos do layout | ||
4) Elements é a estrutura de elementos associada ao layout | ||
5) Index é a posição do layout | ||
|
||
|
||
 | ||
|
||
1) Incorpora os campos padrão do GORM para um modelo de banco de dados | ||
2) Identifier é o identificador do sensor | ||
3) Name é o nome do sensor | ||
3) CoordX é a coordenada X do sensor | ||
4) CoordY é a coordenada Y do sensor | ||
|
||
|
||
|
||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<script></script> | ||
<template> | ||
<div class="bg-neutral-700 h-screen w-screen"> | ||
<div class="bg-root-color h-auto w-screen"> | ||
<router-view></router-view> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<script setup> | ||
import SideBar from '../SideBar.vue' | ||
import MainChart from '../MainChart.vue'; | ||
import GrapchA from '../GrapchA.vue'; | ||
import GrapchB from '../GrapchB.vue'; | ||
import GrapchC from '../GrapchC.vue'; | ||
</script> | ||
|
||
<template> | ||
<div class="grid grid-cols-6 w-screen h-auto min-h-96 "> | ||
<div class=" bg-slate-100 sideMenu"></div> | ||
<SideBar /> | ||
|
||
<div class="xl:col-start-2 xl:col-end-9 flex-col min-h-screen col-start-1 h-fit col-end-9 w-full"> | ||
|
||
<div class="flex flex-wrap gap-10 h-full max-w-full m-10 items-center align-items: flex-start" > | ||
<div :class="`w-96 flex justify-center items-center min-h-52 h-auto bg-white soft-shadow text-center`"> | ||
<div class="flex flex-col w-auto"> | ||
<h1 class="m-3">MainChart</h1> | ||
<MainChart /> | ||
</div> | ||
</div> | ||
<div :class="`w-96 flex justify-center items-center min-h-52 h-auto bg-white soft-shadow text-center`"> | ||
<div class="flex flex-col w-auto"> | ||
<h1 class="m-3">GrapchA</h1> | ||
<GrapchA /> | ||
</div> | ||
</div> | ||
<div :class="`w-96 flex justify-center items-center min-h-52 h-auto bg-white soft-shadow text-center`"> | ||
<div class="flex flex-col w-auto"> | ||
<h1 class="m-3">GrapchB</h1> | ||
<GrapchB /> | ||
</div> | ||
</div> | ||
<div :class="`w-96 flex justify-center items-center min-h-52 h-auto bg-white soft-shadow text-center`"> | ||
<div class="flex flex-col w-auto"> | ||
<h1 class="m-3">GrapchC</h1> | ||
<GrapchC /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<template> | ||
<div class="w-full text-center bg-stone-600 m-3"> | ||
GrapchA | ||
</div> | ||
</template> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<template> | ||
<div class="w-full text-center bg-orange-300 m-3"> | ||
GrapchB | ||
</div> | ||
</template> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<template> | ||
<div class="w-full text-center bg-red-200 m-3"> | ||
GraphC | ||
</div> | ||
</template> | ||
|
Oops, something went wrong.