From 26f4a0c6643039dd8c4e6bee6f94a54d3b1badc5 Mon Sep 17 00:00:00 2001 From: Damian Freeman Date: Wed, 22 Feb 2023 23:10:51 +0000 Subject: [PATCH 1/8] Current update code --- index.html | 174 ++++++++++++++--------------------------------------- 1 file changed, 46 insertions(+), 128 deletions(-) diff --git a/index.html b/index.html index 01e7117..d4a5db8 100644 --- a/index.html +++ b/index.html @@ -1,128 +1,46 @@ - - - - Staff Directory - - - - - - - - - - - - -
-

- Staff Directory - directory.libraryofcode.org -

- - - - - - - - - - - - - -
- - -
-
-
- - - - - - - - -
-
- - - -

Speciality Titles

-

Below are a list of specialty titles. Board Certification is awarded to those who complete internship in a specialty.

-
-
FSCE
-
Fellow of Community Engagement - Community Engagement/Events | Board Certified
-
CEP
-
Community Engagement Practitioner - Community Engagement/Events | Board Certified
-
CE-I
-
Community Engagement/Events | Intern

-
FSEN
-
Fellow of Engineering - Engineering & Software Development | Board Certified
-
ENP
-
Engineering Practitioner - Engineering & Software Development | Board Certified
-
ENG-I
-
Engineering & Software Development | Intern

-
FSM
-
Fellow of Moderation - Moderation | Board Certified
-
MDP
-
Moderation Practitioner - Moderation | Board Certified
-
MOD-I
-
Moderation | Intern

-
FSO
-
Fellow of Operations - Operations & Administration | Board Certified
-
OAP
-
Operations Practitioner - Operations & Administration | Board Certified
-
OA-I
-
Operations & Administration | Intern

-
FSCR
-
Fellow of Community Relations - Community Relations & Member Support | Board Certified
-
CRP
-
Community Relations Practitioner - Community Relations & Member Support | Board Certified
-
CRS-I
-
Community Relations & Member Support | Intern

-
- -

Positional Titles

-

Below are a list of positional rankings which are awarded based on the chain of command.

-
- -
AD
-
Administrator ~ administrator in one or more projects or departments
-
SP
-
Supervisor ~ high-level staff member in one or more departments with authority
-
ST
-
Staff/Core Team | Board Certified ~ board certified Core Team and Staff member

-
AS-BC
-
Associate | Board Certified ~ board certified Associate whom has completed training
-
AS
-
Associate | Intern ~ associate whom is currently an intern/in-training
-
-
-

Member Titles

-

Staff members and Associates are not eligible to receive these titles, they're reserved for community members only.

-
-
RCA
-
Registered Community Ambassador - this member is a registered Community Ambassador. They were nominated by the Staff Team for the role and elected by the community.
-
PRF-C
-
Proficient/Experienced | Board Certified - this member's proficiency credentials in an IT field have been board certified.
-
EdP-C
-
Educational Services Course | Certified - this member was certified by an Educational Services Instructor by taking one of our courses.
-
-
-
© 2021 Library of Code sp-us | Department of Operations
-
-
- - - - + + + + + + + + + Staff Directory + + + + + + + +
+

+ Staff Directory +

+ + + + + + + + + + + +
NameTitle/DepartmentEmail
+ + + + +
+ + -- 2.20.1 From 2b9ad226c6735c674123618dee04fda4177f8d79 Mon Sep 17 00:00:00 2001 From: Damian Freeman Date: Wed, 22 Feb 2023 23:11:31 +0000 Subject: [PATCH 2/8] Update script.js --- script.js | 104 ++++++++++++++++++++++++++---------------------------- 1 file changed, 50 insertions(+), 54 deletions(-) diff --git a/script.js b/script.js index 11b6b93..39e5d89 100644 --- a/script.js +++ b/script.js @@ -1,56 +1,52 @@ -(async function() { - const fetched = await fetch('https://loc.sh/int/directory'); - //const fetched = await fetch('http://localhost:3890/int/directory'); - const data = await fetched.json(); - const table = document.getElementById('directory'); - const table2 = document.getElementById('roles'); - // users.sort((a, b) => a.firstname.localeCompare(b.firstname)) - let completed = 0; - document.getElementById('loading').innerText += ` ${completed}/${data.length - 1}` - for (const info of data.sort((a, b) => a.name.localeCompare(b.name))) { - completed++; - document.getElementById('loading').innerText = `Loading... | ${completed}/${data.length}`; - // console.log(info); - const fetched2 = await fetch(`https://loc.sh/int/directory?id=${info.userID}`); - //const fetched2 = await fetch(`http://localhost:3890/int/directory?id=${info.userID}`); - const user = await fetched2.json(); - // console.log(user); - if (!user.staff) continue; - const row = table.insertRow(); - const row2 = table2.insertRow(); - let name = `${user.username}`; - let pn = []; - if (info.pn && info.pn.length > 0) { - for (const nominal of info.pn) { - pn.push(`${nominal}`) - } - name += `, ${pn.join(', ')}`; - } - row.insertCell().innerHTML = `${user.username} ${name}`; - // row.insertCell().innerText = `${info.userID} | #${user.discriminator}`; - let departmentAndTitle = ''; - if (info.title && info.dept) { - departmentAndTitle += `${info.title}, ${info.dept}`; - } else if (info.dept) { - departmentAndTitle += info.dept; - } - row.insertCell().innerText = departmentAndTitle; - row.insertCell().innerHTML = info.emailAddress ? `${info.emailAddress} ` : ''; - row.insertCell().innerText = user.pager ? user.pager : ''; - row.insertCell().innerText = info.extension ? info.extension : ''; +// Removed useless bits of code - row2.insertCell().innerHTML = `${name}`; - let rankings = ''; - } else { - rankings = ''; - } - row2.insertCell().innerHTML = rankings; - } - document.getElementById('loading').style.display = "none"; - document.getElementById('directory').style.display = "block"; -})(); + document.getElementById('loading').style.display = "none"; + document.getElementById('directory').style.display = "block"; + })(); + -- 2.20.1 From 96c60aa6cbf21697742c80f83acc0e34e3bddb71 Mon Sep 17 00:00:00 2001 From: Damian Freeman Date: Wed, 22 Feb 2023 23:11:50 +0000 Subject: [PATCH 3/8] Delete getabb.js --- getabb.js | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 getabb.js diff --git a/getabb.js b/getabb.js deleted file mode 100644 index 15f69e6..0000000 --- a/getabb.js +++ /dev/null @@ -1,30 +0,0 @@ -function getAbbreviations() { - const map = new Map(); - map.set('FSEN', 'Fellow of Engineering & Software Development [Board Certified]'); - map.set('FSM', 'Fellow of Moderation [Board Certified]'); - map.set('FSCE', 'Fellow of Community Engagement [Board Certified]'); - map.set('FSCR', 'Fellow of Community Relations & Member Support [Board Certified]'); - map.set('FSO', 'Fellow of Operations [Board Certified]'); - map.set('ENP', 'Engineering Practitioner [Board Certified]'); - map.set('MDP', 'Moderation Practitioner [Board Certified]'); - map.set('CEP', 'Community Engagement Practitioner [Board Certified]') - map.set('CRP', 'Community Relations & Member Support Practitioner [Board Certified]'); - map.set('OAP', 'Operations Practitioner [Board Certified]'); - map.set('CE-I', 'Community Relations Intern'); - map.set('ENG-I', 'Engineering Intern'); - map.set('MOD-I', 'Moderation Intern'); - map.set('CRS-I', 'Community Relations & Member Support Intern'); - map.set('OA-I', 'Operations Intern'); - map.set('AD', 'Administrator'); - map.set('SP', 'Supervisor'); - map.set('ST', 'Staff Team/Core Team [Board Certified]'); - map.set('AS-BC', 'Associate - Board Certified'); - map.set('AS', 'Associate - Intern') - return map; -} -function visible() { - document.getElementById('roles').style.display = "table"; -} -function invisible() { - document.getElementById('roles').style.display = "none"; -} -- 2.20.1 From fe3a163cd265c7617aee0ac64e14a76777785820 Mon Sep 17 00:00:00 2001 From: Damian Date: Wed, 22 Feb 2023 23:15:04 +0000 Subject: [PATCH 4/8] Add README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..758153a --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# Changes (Personal Copy) +[ ] Completely rennovate design (current is placeholder) +[ * ] Remove abbv stuff +[ ] Avatars -- 2.20.1 From f3bead93958ed0e15c53f32753480f62a02a454a Mon Sep 17 00:00:00 2001 From: Damian Date: Wed, 22 Feb 2023 23:15:13 +0000 Subject: [PATCH 5/8] Delete README.md --- README.md | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index 758153a..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# Changes (Personal Copy) -[ ] Completely rennovate design (current is placeholder) -[ * ] Remove abbv stuff -[ ] Avatars -- 2.20.1 From 1fdc2bd16257575a2c751feecb68a381d146e878 Mon Sep 17 00:00:00 2001 From: Damian Date: Thu, 15 Jun 2023 06:06:03 +0000 Subject: [PATCH 6/8] Update script.js --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index 39e5d89..5bc3d9f 100644 --- a/script.js +++ b/script.js @@ -23,7 +23,7 @@ let name = `${user.username}`; let pn = []; - row.insertCell().innerHTML = `${user.username} ${name}`; + row.insertCell().innerHTML = `${user.username} ${name} ${user.res.isManager ? ' [k]' : ''}`; // row.insertCell().innerText = `${info.userID} | #${user.discriminator}`; let departmentAndTitle = ''; if (info.title && info.dept) { -- 2.20.1 From 33f37588c88d59b051b4a829f1e98dc03d8f9848 Mon Sep 17 00:00:00 2001 From: Damian Date: Thu, 15 Jun 2023 07:08:44 +0000 Subject: [PATCH 7/8] Finally finished this, will add more content (cough @matthew) --- index.html | 81 +++++++++++++++++++++++----------------------- script.js | 94 ++++++++++++++++++++++++++---------------------------- 2 files changed, 86 insertions(+), 89 deletions(-) diff --git a/index.html b/index.html index d4a5db8..042f20c 100644 --- a/index.html +++ b/index.html @@ -1,46 +1,47 @@ - - - - - - - - Staff Directory + + + + - - + Staff Directory - - - -
-

- Staff Directory -

+ - - - - - - - - - - -
NameTitle/DepartmentEmail
+ + + +
+ + + + + + + + + +
NameTitle/DepartmentEmail
- - - -
- + + + +
+ + diff --git a/script.js b/script.js index 5bc3d9f..30ec6de 100644 --- a/script.js +++ b/script.js @@ -1,52 +1,48 @@ -// Removed useless bits of code +(async function () { + const fetched = await fetch("https://loc.sh/int/directory"); + const data = await fetched.json(); + const table = document.getElementById("directory"); -(async function() { - const fetched = await fetch('https://loc.sh/int/directory'); - //const fetched = await fetch('http://localhost:3890/int/directory'); - const data = await fetched.json(); - const table = document.getElementById('directory'); - //const table2 = document.getElementById('roles'); - // users.sort((a, b) => a.firstname.localeCompare(b.firstname)) - let completed = 0; - document.getElementById('loading').innerText += ` ${completed}/${data.length - 1}` - for (const info of data.sort((a, b) => a.name.localeCompare(b.name))) { - completed++; - document.getElementById('loading').innerText = `Loading... | ${completed}/${data.length}`; - // console.log(info); - const fetched2 = await fetch(`https://loc.sh/int/directory?id=${info.userID}`); - //const fetched2 = await fetch(`http://localhost:3890/int/directory?id=${info.userID}`); - const user = await fetched2.json(); - // console.log(user); - if (!user.staff) continue; - const row = table.insertRow(); - //const row2 = table2.insertRow(); - let name = `${user.username}`; - let pn = []; - - row.insertCell().innerHTML = `${user.username} ${name} ${user.res.isManager ? ' [k]' : ''}`; - // row.insertCell().innerText = `${info.userID} | #${user.discriminator}`; - let departmentAndTitle = ''; - if (info.title && info.dept) { - departmentAndTitle += `${info.title}, ${info.dept}`; - } else if (info.dept) { - departmentAndTitle += info.dept; - } - row.insertCell().innerText = departmentAndTitle; - row.insertCell().innerHTML = info.emailAddress ? `${info.emailAddress} ` : ''; + let completed = 0; + document.getElementById("loading").innerText += ` ${completed}/${ + data.length - 1 + }`; + for (const info of data.sort((a, b) => a.name.localeCompare(b.name))) { + completed++; + document.getElementById( + "loading" + ).innerText = `Loading... | ${completed}/${data.length}`; + const fetched2 = await fetch( + `https://loc.sh/int/directory?id=${info.userID}` + ); + const user = await fetched2.json(); + if (!user.staff) continue; - // row2.insertCell().innerHTML = `${name}`; - let rankings = '
    '; - if (info.additionalRoles && info.additionalRoles.length > 0) { - for (const rank of info.additionalRoles) { - rankings += `
  • ${rank}
  • ` - } - rankings += '
'; - } else { - rankings = ''; - } - // row2.insertCell().innerHTML = rankings; + const row = table.insertRow(); + let name = `${user.username}`; + row.insertCell().innerHTML = `${user.username} ${name} ${info.isManager ? " [k]" : ""}`; + + let departmentAndTitle = ""; + if (info.title && info.dept) { + departmentAndTitle += `${info.title}, ${info.dept}`; + } else if (info.dept) { + departmentAndTitle += info.dept; } - document.getElementById('loading').style.display = "none"; - document.getElementById('directory').style.display = "block"; - })(); - + row.insertCell().innerText = departmentAndTitle; + row.insertCell().innerHTML = info.emailAddress + ? `${info.emailAddress} ` + : ""; + + let rankings = "
    "; + if (info.additionalRoles && info.additionalRoles.length > 0) { + for (const rank of info.additionalRoles) { + rankings += `
  • ${rank}
  • `; + } + rankings += "
"; + } else { + rankings = ""; + } + } + document.getElementById("loading").style.display = "none"; + table.style.display = "block"; +})(); -- 2.20.1 From 01a7b66bc7828d6c08e59fad639677d48848bd93 Mon Sep 17 00:00:00 2001 From: Damian Freeman Date: Sun, 2 Jul 2023 23:27:17 +0000 Subject: [PATCH 8/8] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 042f20c..13546ac 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - + -- 2.20.1