Skip to content

Commit

Permalink
www/js/logic.js:
Browse files Browse the repository at this point in the history
- Added a new column with a link to open the App in the local "Microsoft App Store" application

www/assets/data.json:
- Added "Microsoft 365 (Office)", "Microsoft Forms", "Microsoft Xbox", "Microsoft Journal" and "Microsoft SysInternals Suite" applications
- Renamed "Microsoft Windows 365" app to "Microsoft Windows App"
  • Loading branch information
edgarchinchilla committed Jul 29, 2024
1 parent dd253ba commit 42819e7
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 11 deletions.
31 changes: 28 additions & 3 deletions www/assets/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,15 @@
"AppID": "9N0DX20HK701"
},
{
"Name": "Microsoft Windows 365",
"Name": "Microsoft Windows App",
"Info": "",
"AppID": "9N1F85V9T8BN"
},
{
"Name": "Microsoft 365 (Office)",
"Info": "",
"AppID": "9WZDNCRD29V9"
},
{
"Name": "Microsoft Phone Link",
"Info": "https://aka.ms/linkphone, https://aka.ms/phonelinkqrc, https://www.aka.ms/yourpc",
Expand All @@ -79,6 +84,11 @@
"Info": "",
"AppID": "9NBLGGH5R558"
},
{
"Name": "Microsoft Forms",
"Info": "",
"AppID": "9NHKF5NVCG00"
},
{
"Name": "Microsoft Outlook for Windows",
"Info": "",
Expand Down Expand Up @@ -164,6 +174,11 @@
"Info": "",
"AppID": "9NBLGGH5FV99"
},
{
"Name": "Microsoft Xbox",
"Info": "",
"AppID": "9MV0B5HZVK9Z"
},
{
"Name": "Microsoft ClipChamp",
"Info": "",
Expand All @@ -174,6 +189,11 @@
"Info": "",
"AppID": "9WZDNCRFJ3PS"
},
{
"Name": "Microsoft Power BI Desktop",
"Info": "",
"AppID": "9NTXR16HNW1T"
},
{
"Name": "Microsoft Designer",
"Info": "",
Expand All @@ -185,15 +205,20 @@
"AppID": "9P1HQ5TQZMGD"
},
{
"Name": "Microsoft Power BI Desktop",
"Name": "Microsoft Journal",
"Info": "",
"AppID": "9NTXR16HNW1T"
"AppID": "9N318R854RHH"
},
{
"Name": "Microsoft Accesory Center",
"Info": "",
"AppID": "9N013P0KR5VX"
},
{
"Name": "Microsoft SysInternals Suite",
"Info": "",
"AppID": "9P7KNL5RWT25"
},
{
"Name": "Microsoft Dev Home",
"Info": "https://aka.ms/dsc.yaml",
Expand Down
24 changes: 16 additions & 8 deletions www/js/logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,18 @@ function loadJsonAndBuildAppsList() {
headerCell.textContent = key;
headerRow.appendChild(headerCell);
}
// Add an "MS Store" header
// Add an "MS Store (App)" header
const custHeaderCell1 = document.createElement('th');
custHeaderCell1.textContent = "MS Store";
custHeaderCell1.textContent = "MS Store (App)";
headerRow.appendChild(custHeaderCell1);
// Add an "Actions" header for Rings
// Add an "MS Store (Online)" header
const custHeaderCell2 = document.createElement('th');
custHeaderCell2.textContent = "Rings";
custHeaderCell2.textContent = "MS Store (Online)";
headerRow.appendChild(custHeaderCell2);
// Add an "Actions" header for Rings
const custHeaderCell3 = document.createElement('th');
custHeaderCell3.textContent = "Rings";
headerRow.appendChild(custHeaderCell3);
// Attach the header row to the table
tableHeader.appendChild(headerRow);
dataTable.appendChild(tableHeader);
Expand All @@ -47,10 +51,14 @@ function loadJsonAndBuildAppsList() {
latestItemValue = item[value];
dataRow.appendChild(dataCell);
}
// Add an "Actions" field with one button per Store "Ring"
const msStoreDataCell = document.createElement('td');
msStoreDataCell.innerHTML += "<a href=\"https://apps.microsoft.com/store/detail/" + latestItemValue + "\" target=\"_blank\">Visit on MS Store</a>";
dataRow.appendChild(msStoreDataCell);
// Add an "Open in MS Store (App)" field
const msAppStoreDataCell = document.createElement('td');
msAppStoreDataCell.innerHTML += "<a href=\"ms-windows-store://pdp?referrer=storeforweb&productid=" + latestItemValue + "&ocid=storeweb-pdp-open-cta\" target=\"_blank\">Open in MS Store App</a>";
dataRow.appendChild(msAppStoreDataCell);
// Add an "Open in MS Store (Online)" field
const msOnlineStoreDataCell = document.createElement('td');
msOnlineStoreDataCell.innerHTML += "<a href=\"https://apps.microsoft.com/store/detail/" + latestItemValue + "\" target=\"_blank\">Visit on MS Online Store</a>";
dataRow.appendChild(msOnlineStoreDataCell);
// Add an "Actions" field with one button per Store "Ring"
const actionsDataCell = document.createElement('td');
actionsDataCell.className = "action-buttons";
Expand Down

0 comments on commit 42819e7

Please sign in to comment.