Skip to content

Commit da4b269

Browse files
committed
search fixed.
other cleanup
1 parent ec8678c commit da4b269

File tree

6 files changed

+3428
-871
lines changed

6 files changed

+3428
-871
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ This page is set to NOT be indexed by default. If you include PII data for your
2727

2828
**LICENSE** MIT ftw! Use this as you see fit, but please include the license (you know, with my name on it) if you use it.
2929

30-
**serviceWorker.js** is a complete service worker definition. On mobile devices in particular you will be able to save the page to your device and it will work completely offline. It does include the default image in the assets along with a google font, Manrope. Combined with the serviceworker_for_PWA script and the meta tags in the index.html file this will generate a perfect Lighthouse PWA score. If you're not interested in a WPA you should delete the entire serviceworker_for_PWA script since it tries to refer to the serviceWorker.js file that won't load if you don't have it. The meta tags are good to keep around and shouldn't cause a problem if you remove the PWA.
30+
**serviceWorker.js** is a complete service worker definition. On mobile devices in particular you will be able to save the page to your device, and it will work completely offline. It does include the default image in the assets along with a Google font, Manrope. Combined with the serviceworker_for_PWA script and the meta tags in the index.html file this will generate a perfect Lighthouse PWA score. If you're not interested in a WPA you should delete the entire serviceworker_for_PWA script since it tries to refer to the serviceWorker.js file that won't load if you don't have it. The meta tags are good to keep around and shouldn't cause a problem if you remove the PWA.
3131

3232
**manifest.json** is required for the PWA and service worker. If you don't want the PWA you should delete this too. But really it's just nice to have offline mode available.
3333

3434
**images/** includes the two required PWA images size required for Android and iOS. They are both org chart images and at least one is maskable as required.
3535

36-
**photos/** is a directory where you can put your photos of your organization. Photos by default should be named <userID>.jpg This can be changed. Because the sample data supplied is fake, the user id is the username portion of each person's email address. The sample CEO Isabella Gray's email address is isabella.gray@example.com, her id is isabella.gray, and her photo is found that the url /photos/isabella.gray.jpg but in practice, it should not be PII data, which presumably YOUR userIds are not.
36+
**photos/** is a directory where you can put your photos of your organization. Photos by default should be named <userID>.jpg This can be changed. Because the sample data supplied is fake, the user id is the username portion of each person's email address. The sample CEO Isabella Gray's email address is isabella.gray@example.com, her id is 'isabella.gray', and her photo is found that the url /photos/isabella.gray.jpg but in practice, it should not be PII data, which presumably YOUR userIds are not.
3737

3838
**photos/_default_.webp** is a default missing photo picture. If you use photos, it's nice to have everything spaced the same. Without any photos, this photo and reference should be removed
3939

40-
**photos/50x50/** is the default thumbnail size for photos. Everything in the parent directory is included here but should be resized to 50 pixels by 50 pixels. Might not be used at the time of this writing. The is a getPhotoUrl() helper that takes a second parameter which is the size of the photo. That function could, in theory, call a resizer proxy... it's just not at the moment.
40+
**photos/50x50/** is the default thumbnail size for photos. Everything in the parent directory is included here but should be resized to 50 pixels by 50 pixels. Might not be used at the time of this writing. The function 'getPhotoUrl()' is a helper that takes a second parameter which is the size of the photo. That function could, in theory, call a resizer proxy... it's just not at the moment.
4141

4242
**favicon.ico** is simple to put a delightful little org chart icon in your bookmarks should you choose to bookmark a site where this is deployed. Very not required, but 100% requested by browsers when they load your page.
4343

@@ -58,7 +58,7 @@ The format of the JSON data remains the same. Example below:
5858
"isabella.gray": {
5959
"id": "isabella.gray",
6060
"hash": "1b1429",
61-
"First name": "Isabellaaaa",
61+
"First name": "Isabella",
6262
"Preferred first name": "Isabella",
6363
"Last name": "Gray",
6464
"Email": "isabella.gray@example.com",
@@ -91,7 +91,7 @@ The format of the JSON data remains the same. Example below:
9191
"description": "Azores, Cape Verde Islands"
9292
}
9393
},
94-
"username": "purplezebra186",
94+
"username": "purpleZebra186",
9595
"dob": "1998-02-07T21:24:37.923Z",
9696
"picture": {
9797
"large": "https://randomuser.me/api/portraits/women/12.jpg",

data.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
let ORGCHART_DATA =
1+
data =
22
{
33
"isabella.gray": {
44
"id": "isabella.gray",
55
"hash": "1b1429",
6-
"First name": "Isabellaaaa",
6+
"First name": "Isabella",
77
"Preferred first name": "Isabella",
88
"Last name": "Gray",
99
"Email": "isabella.gray@example.com",
@@ -67,6 +67,7 @@ let ORGCHART_DATA =
6767
"Employee type": "Full Time",
6868
"Department": "Engineering",
6969
"Division": "Research and Development",
70+
"Domain": "Research and Development",
7071
"Job Title": "Engineering Manager",
7172
"Office Locations": "Forney",
7273
"Teams": "Card Lifecycle Management",

images/countryflags.webp

88.7 KB
Binary file not shown.

images/stateflags.webp

25.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)