Skip to content

Commit

Permalink
Merge pull request #93 from jeongm-in/prepare-first-release
Browse files Browse the repository at this point in the history
Prepare first release
  • Loading branch information
jeongm-in authored Jul 11, 2019
2 parents 9a44b4b + af8d70d commit c59d606
Show file tree
Hide file tree
Showing 19 changed files with 63 additions and 228 deletions.
18 changes: 18 additions & 0 deletions public/_locales/en/detailed_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Load a random page from your bookmarks!

More and more bookmarks going unvisited? Use WebMark to stop that! If you have a lot of bookmarks to visit later at some point (read: "never"), move or copy them to WebMark folder using Chrome's built-in bookmark manager (Ctrl+Shift+O on Windows/Linux, ⌘+Option+B on Mac, or just chrome://bookmarks). You can also save them as you go by clicking the save button you see once you click on the WebMark icon on the top right. Then when you're bored and need something to read, click on the load button to see a random page from WebMark folder!

Notes:
• You can rename or move the WebMark folder. However, we don't create a new one unless it is deleted.

Features available:
• Save bookmarks to WebMark folder
• Load a random page from WebMark folder
• Choose whether a page is loaded in the current tab or a new tab

Features coming:
• Use keyboard shortcuts to save and load bookmarks
• Delete from WebMark folder once you finish reading the page
• Open the webmark folder in bookmark manager

If you have any questions, concerns, comments, or criticisms, please feel free to leave a review or reach us at strgzrs@googlegroups.com!
Binary file added public/_locales/en/screenshot1280x800.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions public/_locales/ko/detailed_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
북마크된 페이지를 랜덤으로 골라드려요!

북마크만 해 두고 안 보는 건 이제 그만! '나중에 봐야지' 생각만 하고 가지 않은 페이지들이 있다면 웹마크 폴더로 옮겨 보세요. 윈도우/리눅스에선 Ctrl+Shift+O, 맥에선 ⌘+Option+B를 누르면 크롬 북마크 관리자가 열려요. (또는 주소창에 chrome://bookmarks 를 입력하고 이동할 수도 있어요.) 아니면 서핑하다가 나중에 읽고 싶은 페이지가 있으면 웹마크 버튼을 누르고 '저장하기'를 눌러 저장해 뒀다가, 심심할 때 웹마크 버튼 - '불러오기'를 눌러 웹마크 폴더 속 페이지를 무작위로 하나 띄울 수 있어요.

참고 :
• 웹마크폴더를 이동하거나 폴더의 이름을 바꿔도 괜찮아요.

기능 :
• 웹마크 폴더에 북마크 저장하기
• 웹마크 폴더에서 무작위로 불러오기
• 단축키를 통한 저장하기(Alt+S)/불러오기(Alt+Q)
• 현재 탭에서 열지 새 탭에서 열지 설정

피드백은 리뷰를 남기거나 이메일(strgzrs@googlegroups.com)로 주시면 감사하겠습니다!
Binary file added public/_locales/ko/screenshot1280x800.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 removed public/favicon.ico
Binary file not shown.
Binary file removed public/images/GitHub-Mark-64px.png
Binary file not shown.
Binary file removed public/images/default.png
Binary file not shown.
4 changes: 2 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"bookmarks",
"notifications",
"storage",
"tabs"
"activeTab"
],
"browser_action": {
"default_popup": "index.html",
"default_icon": "images/default.png"
"default_icon": "images/128.png"
},
"background": {
"scripts": [
Expand Down
3 changes: 0 additions & 3 deletions src/App.css

This file was deleted.

9 changes: 0 additions & 9 deletions src/App.test.tsx

This file was deleted.

17 changes: 0 additions & 17 deletions src/App.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/Option.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ ReactDOM.render(
<OptionPage />,
document.getElementById('root') as HTMLElement
);

9 changes: 4 additions & 5 deletions src/background.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
import * as constants from './constants'
import { FOLDER_ID_KEY } from './constants'
import { createWebmarkFolder, saveClicked, loadClicked } from './utils'

chrome.runtime.onInstalled.addListener(
() => {
chrome.storage.sync.get(
[constants.FOLDER_ID_KEY],
[FOLDER_ID_KEY],
(result) => {
if (Object.keys(result).length === 0) {
console.log('webmarkFolderId not found.');
createWebmarkFolder();
}
else {
console.log('webmarkFolderId found.');
let webmarkFolderId: string = result[constants.FOLDER_ID_KEY];
let webmarkFolderId: string = result[FOLDER_ID_KEY];
chrome.bookmarks.get(
webmarkFolderId,
() => {
if (chrome.runtime.lastError) {
console.log('webmark folder not found.');
createWebmarkFolder();
chrome.storage.sync.remove(constants.FOLDER_ID_KEY);
chrome.storage.sync.remove(FOLDER_ID_KEY);
return;
}
console.log('webmark folder found.');
Expand All @@ -41,4 +41,3 @@ chrome.commands.onCommand.addListener(
}
}
);

6 changes: 3 additions & 3 deletions src/components/Popup.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react";
import PopupButton from "./PopupButton";
import * as constants from "../constants"
import { SAVE_BUTTON_TEXT, LOAD_BUTTON_TEXT } from "../constants"
import ButtonGroup from 'react-bootstrap/ButtonGroup'

class Popup extends React.Component {
Expand All @@ -10,8 +10,8 @@ class Popup extends React.Component {
render() {
return (
<ButtonGroup id="buttons" vertical>
<PopupButton id="save" text={constants.SAVE_BUTTON_TEXT} />
<PopupButton id="load" text={constants.LOAD_BUTTON_TEXT} />
<PopupButton id="save" text={SAVE_BUTTON_TEXT} />
<PopupButton id="load" text={LOAD_BUTTON_TEXT} />
</ButtonGroup >
);
}
Expand Down
1 change: 0 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ export const OPTIONS_ABOUT_CARD_TITLE: string = chrome.i18n.getMessage('optionsA
export const OPTIONS_ABOUT_VERSION_TITLE: string = chrome.i18n.getMessage('optionsAboutCardContentVersionTitle');
export const OPTIONS_ABOUT_TEAM_TITLE: string = chrome.i18n.getMessage('optionsAboutCardContentTeamNameTitle');
export const OPTIONS_ABOUT_HOMEPAGE_TITLE: string = chrome.i18n.getMessage('optionsAboutCardContentTeamLinkTitle');

13 changes: 0 additions & 13 deletions src/index.css

This file was deleted.

9 changes: 0 additions & 9 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@ import React from 'react';
import ReactDOM from 'react-dom';
import Popup from './components/Popup';
import { saveClicked, loadClicked } from './utils'
// import './index.css';
// import * as serviceWorker from './serviceWorker';

// // If you want your app to work offline and load faster, you can change
// // unregister() to register() below. Note this comes with some pitfalls.
// // Learn more about service workers: https://bit.ly/CRA-PWA
// serviceWorker.unregister();
// chrome.storage.sync.clear();
// chrome.storage.sync.set({ [constants.LOAD_HERE_KEY]: true });

ReactDOM.render(
<Popup />,
Expand Down
143 changes: 0 additions & 143 deletions src/serviceWorker.ts

This file was deleted.

Loading

0 comments on commit c59d606

Please sign in to comment.