mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
update: Core Doc "JSDOC"
This commit is contained in:
parent
3d9140d599
commit
31a82a6a80
@ -1,3 +1,18 @@
|
||||
/**
|
||||
*
|
||||
* In this function it is the one that collects all the errors and then displays them by 'payload'
|
||||
*
|
||||
* @param {HTMLTableElement} Interface Helper - Interface Errors
|
||||
* Checks if a character is in the control string
|
||||
* @param {string} position
|
||||
* @param {string} id
|
||||
* @param {string} mode
|
||||
* @param {string} element
|
||||
* @param {string} NAH
|
||||
* @return {void} Nothing
|
||||
* @param {Array} payload - TThis element generates the errors
|
||||
*/
|
||||
|
||||
// Reducers & helpers
|
||||
import { Swapper } from 'components/layout/Overlay/index.tsx'
|
||||
import { useSelector } from 'umi';
|
||||
|
@ -1,5 +1,15 @@
|
||||
/**
|
||||
*
|
||||
* Specify all core paths and export elements
|
||||
*
|
||||
* @param {HTMLTableElement} router - Archives Paths
|
||||
*/
|
||||
|
||||
import { history } from 'umi';
|
||||
|
||||
/**
|
||||
* Specify the paths of the files, in this case it is pointing to the root
|
||||
*/
|
||||
export const router = {
|
||||
go: e => {
|
||||
goTo.element('primaryContent');
|
||||
@ -16,6 +26,9 @@ export const router = {
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* You are exporting the elements to collect errors
|
||||
*/
|
||||
export const goTo = {
|
||||
top: id => {
|
||||
const element = document.getElementById(id);
|
||||
|
@ -1,6 +1,18 @@
|
||||
/**
|
||||
*
|
||||
* @param {HTMLTableElement} session - Callback / Credentials
|
||||
* @returns {callback} make an API call to verify credentials
|
||||
* @throws {NotFoundError} show error when credentials were not correctly put
|
||||
* @async
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
import endpoints from 'config/endpoints';
|
||||
import { v3_model } from 'core/libs';
|
||||
|
||||
|
||||
// @param {Array} payload callback - check the information and if it is correct give access
|
||||
function auth(payload, callback) {
|
||||
if (!payload) return false;
|
||||
const { username, password, server_key } = payload;
|
||||
@ -25,6 +37,7 @@ function auth(payload, callback) {
|
||||
|
||||
async function deauth() {}
|
||||
|
||||
// check the information and if it is correct give access
|
||||
const backup = {
|
||||
get: () => {},
|
||||
set: () => {},
|
||||
|
Loading…
x
Reference in New Issue
Block a user