forked from abalone0204/Clairvoyance
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(firefox): initlize firefox addon package.json config and popup b…
…utton/html.
- Loading branch information
1 parent
fed6938
commit 06e6c31
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Popup</title> | ||
</head> | ||
<body> | ||
<div id="container"></div> | ||
<script src='./dist/popup-bundle.js'></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
'use strict'; | ||
const {ActionButton} = require('sdk/ui/button/action'); | ||
const {Panel} = require('sdk/panel'); | ||
const tabs = require("sdk/tabs"); | ||
|
||
const panel = Panel({ | ||
contentURL: './popup.html', | ||
width: 450, | ||
height: 350 | ||
}); | ||
|
||
const button = ActionButton({ | ||
id: "clairvoyance-popup", | ||
label: "Clairvoyance - 求職天眼通", | ||
icon: './icon.png', | ||
onClick() { | ||
panel.show({ | ||
position: button | ||
}); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "clairvoyance", | ||
"title": "Clairvoyance - 求職天眼通", | ||
"description": "讓你能在各大人力銀行上留言討論職缺,減少求職的資訊不對稱", | ||
"author": "mrbigmouth", | ||
"contributors": ["clver"], | ||
"main": "index.js", | ||
"engines": { | ||
"firefox": ">=38.0a1" | ||
}, | ||
"license": "MIT", | ||
"version": "1.9.0" | ||
} |