MCPcopy Create free account
hub / github.com/Milkyroad/SCiPNET / loginConvert

Function loginConvert

public/src/js/loginConvert.js:1–51  ·  view source on GitHub ↗
(url, name)

Source from the content-addressed store, hash-verified

1export function loginConvert(url, name) {
2 var string;
3 var file;
4 if (url == null) {
5 string = name.split('|');
6 file = {
7 title: string[0],
8 site: string[1],
9 name: string[2],
10 clearance: string[3],
11 key: "",
12 classification: "Not yet registered"
13 }
14 return file
15 } else {
16 if (url.includes('|-|')) {
17 string = url.split('|-|');
18 if (string[4] != undefined) {
19 file = {
20 clearance: string[0],
21 title: string[1],
22 classification: string[2],
23 site: string[3],
24 key: string[4],
25 name: name
26 }
27 } else {
28 file = {
29 clearance: string[0],
30 title: string[1],
31 classification: string[2],
32 site: string[3],
33 key: "",
34 name: name
35 }
36 }
37 return file
38 } else {
39 string = name.split('|');
40 file = {
41 title: string[0],
42 site: string[1],
43 name: string[2],
44 clearance: string[3],
45 key: url,
46 classification: "Not yet registered"
47 }
48 return file
49 }
50 }
51}

Callers 1

script.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected