Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Commit

Permalink
updated icon and enabled popup
Browse files Browse the repository at this point in the history
  • Loading branch information
nmetulev committed Mar 25, 2022
1 parent 57caea3 commit 7a92e41
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 7 deletions.
Binary file added public/icon/128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
12 changes: 10 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,19 @@
},
"permissions": ["tabs", "scripting", "downloads"],
"host_permissions": ["http://*/", "https://*/"],
"action": {},
"action": {
"default_popup": "panel.html"
},
"content_scripts" : [
{
"js": ["partnerCenter.js"],
"matches": ["*://partner.microsoft.com/*"]
}
]
],
"icons": {
"16": "icon/16.png",
"32": "icon/32.png",
"48": "icon/48.png",
"128": "icon/128.png"
}
}
3 changes: 3 additions & 0 deletions public/panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

<head>
<link rel="stylesheet" href="shoelace/light.css" />
<style>
html{min-height:500px;min-width:500px}
</style>
</head>

<body>
Expand Down
10 changes: 5 additions & 5 deletions src/devtools.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
chrome.devtools.panels.create("PWA Builder",
"icon_512.png",
"panel.html",
(panel) => {
console.log(panel);
});
"icon/512.png",
"panel.html",
(panel) => {
console.log(panel);
});
6 changes: 6 additions & 0 deletions src/partnerCenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ async function loadExtension() {

let nameList = publisherData.Name.split('.');
let name = nameList[nameList.length - 1];

// TODO for version
// we should provide option for dev to enter version
// but we can also be smart and use the partner center api to see what package versions are already submitted
// and generate a new version that's higher
// https://partner.microsoft.com/dashboard/packages/api/pkg/v2.0/packagesets?productId=9PGB0X13X6QZ&submissionId=1152921505694665183&select=Validations

const windowsOptions: WindowsOptions = {
url,
Expand Down

0 comments on commit 7a92e41

Please sign in to comment.