This file contains hidden or 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
| <template> | |
| <div class="layout-padding"> | |
| <q-data-table | |
| :data="table" | |
| :config="config" | |
| :columns="columns" | |
| /> | |
| </div> | |
| </template> |
This file contains hidden or 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
| <template> | |
| <!-- Don't drop "q-app" class --> | |
| <div id="q-app"> | |
| <q-layout ref="layout" view="hHr LpR lFf" :right-breakpoint="1100"> | |
| <!-- Header --> | |
| <q-toolbar slot="header"> | |
| <q-btn flat @click="$refs.layout.toggleLeft()"> | |
| <q-icon name="menu" /> | |
| </q-btn> |
This file contains hidden or 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
| unit principal; | |
| {$mode objfpc}{$H+} | |
| interface | |
| uses | |
| Classes, SysUtils, db, sqldb, odbcconn, mysql50conn, mysql56conn, FileUtil, | |
| Forms, Controls, Graphics, Dialogs, StdCtrls, DBGrids, DbCtrls, ComCtrls, | |
| ExtCtrls, ZConnection, ZDataset, IniFiles, regexpr, LConvEncoding; |
This file contains hidden or 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
| C:\kian\.\units\principal.pas(626,15) Error: (5000) Identifier not found "OpenProcess" | |
| C:\kian\.\units\principal.pas(626,27) Error: (5000) Identifier not found "PROCESS_ALL_ACCESS" | |
| C:\kian\.\units\principal.pas(626,54) Error: (5000) Identifier not found "GetCurrentProcessID" | |
| C:\kian\.\units\principal.pas(627,1) Error: (5000) Identifier not found "SetProcessWorkingSetSize" | |
| C:\kian\.\units\principal.pas(628,1) Error: (5000) Identifier not found "CloseHandle" | |
| principal.pas(989) Fatal: (10026) There were 5 errors compiling module, stopping | |
| Fatal: (1018) Compilation aborted | |
| Error: C:\lazarus\fpc\3.0.0\bin\x86_64-win64\ppcx64.exe returned an error exitcode |
This file contains hidden or 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
| procedure TrimAppMemorySize; | |
| var | |
| MainHandle : THandle; | |
| begin | |
| try | |
| MainHandle := OpenProcess(PROCESS_ALL_ACCESS, false, GetCurrentProcessID) ; | |
| SetProcessWorkingSetSize(MainHandle, $FFFFFFFF, $FFFFFFFF) ; | |
| CloseHandle(MainHandle) ; | |
| except | |
| end; |
This file contains hidden or 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
| version: '3' | |
| networks: | |
| default: | |
| external: | |
| name: soitic | |
| services: | |
| web: |
This file contains hidden or 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
| public function insert(Request $request) | |
| { | |
| try{ | |
| parent::insert($request); | |
| $role = Role::create($request->all()); | |
| $role->permissions()->sync($request->input('permissions')); | |
| return new JsonResponse(['created'=>true]); |
This file contains hidden or 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
| <label v-for="item in permissions " > | |
| <input type="checkbox" v-model="form.permissions" v-bind:key="item.id"> | |
| {{item.name}}</label> |
This file contains hidden or 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
| <script> | |
| export default { | |
| data: () => { | |
| return { | |
| dados: [], | |
| form: { |
This file contains hidden or 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
| <script> | |
| export default { | |
| data: () => { | |
| return { | |
| tableData: [], | |
| loading2: true | |
| } | |
| }, |