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

Commit

Permalink
Version 2.0.1 (#35)
Browse files Browse the repository at this point in the history
* - added marketplace colors
* - fixed comments losing indentation after collapsing
* - updated README
* - fixed cache error when reopening the extension
* - added filter to .vscodeignore (16files|78kb -> 11files|28kb)
* - use consistent vars in css
* - readded dist
* - first attempt at fixing #32
* - added first install prompt
* - updated version
  • Loading branch information
ekarbe authored Dec 3, 2019
1 parent d9e2f87 commit 1c7619a
Show file tree
Hide file tree
Showing 14 changed files with 88 additions and 56 deletions.
16 changes: 11 additions & 5 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
.github/**
.vscode/**
.vscode-test/**
assets/**
out/test/**
test/**
docs/**
node_modules/**
src/**
.gitignore
CODE_OF_CONDUCT.md
CONTRIBUTING.md
package-lock.json
**/tsconfig.json
**/tslint.json
**/webpack.config.js
**/*.vsix
**/*.map
**/*.ts
assets/gifs/*
node_modules
docs
src/view/_templates.ts
**/*.ts
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,11 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
- Added widget
- Added documentation

## [2.0.1]

- Fixed comment indentation
- Fixed cache error
- Decluttered
- Added install prompt

## [Unreleased]
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,31 +36,31 @@

### Widget

The Reddit-Viewer widget enables an optional view to access the frontpahe and your favorite subreddit fast and resource-friendly.
The Reddit-Viewer widget enables an optional view to access the frontpage and your favorite subreddit fast and resource-friendly.

<img src="https://raw.githubusercontent.com/ekarbe/reddit-viewer/master/assets/gifs/widget.gif" alt="">

#### Sort The Articles

Sort the articles by the default sort-types.
Sort the articles in the widget by the default sort-types. You can define the default sort in the configuration.

<img src="https://raw.githubusercontent.com/ekarbe/reddit-viewer/master/assets/gifs/widget-sort.gif" alt="">

### Open An Article

You can open the articles displayed in the widget in the code viewer or your default browser.
You can open the articles displayed in the widget in the code viewer or your default browser. The primary action can be defined in the configuration. The secondary action can be triggered in the context menu.

<img src="https://raw.githubusercontent.com/ekarbe/reddit-viewer/master/assets/gifs/widget-open.gif" alt="">

### Code Viewer

The Reddit-Viewer code viewer is a webview which allows you to browse Reddit in code style.
The Reddit-Viewer code viewer is a webview which allows you to browse Reddit in code style. Even though it is a webview, it is pretty lightweight and simple.

<img src="https://raw.githubusercontent.com/ekarbe/reddit-viewer/master/assets/gifs/code-viewer.gif" alt="">

#### Open A Subreddit

Open a subreddit and browse its articles.
Open a subreddit and browse its articles. You can see a preview if the post contains a thumbnail.

<img src="https://raw.githubusercontent.com/ekarbe/reddit-viewer/master/assets/gifs/code-viewer-subreddit.gif" alt="">

Expand Down
58 changes: 29 additions & 29 deletions docs/globals.html
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ <h3>handle<wbr>Article</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L587">controller/handler.ts:587</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L591">controller/handler.ts:591</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -1533,7 +1533,7 @@ <h3>handle<wbr>Login</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L402">controller/handler.ts:402</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L406">controller/handler.ts:406</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -1562,7 +1562,7 @@ <h3>handle<wbr>Logout</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L442">controller/handler.ts:442</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L446">controller/handler.ts:446</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -1591,7 +1591,7 @@ <h3>handle<wbr>Search</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L343">controller/handler.ts:343</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L347">controller/handler.ts:347</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -1620,7 +1620,7 @@ <h3>handle<wbr>Subreddit</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L470">controller/handler.ts:470</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L474">controller/handler.ts:474</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -1649,7 +1649,7 @@ <h3>handle<wbr>User</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L734">controller/handler.ts:734</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L738">controller/handler.ts:738</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -1678,7 +1678,7 @@ <h3>next<wbr>Page</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L813">controller/handler.ts:813</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L817">controller/handler.ts:817</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -1706,7 +1706,7 @@ <h3>prev<wbr>Page</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L899">controller/handler.ts:899</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L903">controller/handler.ts:903</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -1734,7 +1734,7 @@ <h3>reset<wbr>Config</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1743">controller/handler.ts:1743</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1747">controller/handler.ts:1747</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -1762,7 +1762,7 @@ <h3>sort<wbr>Best</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1367">controller/handler.ts:1367</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1371">controller/handler.ts:1371</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -1790,7 +1790,7 @@ <h3>sort<wbr>Comments</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1414">controller/handler.ts:1414</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1418">controller/handler.ts:1418</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -1818,7 +1818,7 @@ <h3>sort<wbr>Confidence</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1259">controller/handler.ts:1259</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1263">controller/handler.ts:1263</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -1846,7 +1846,7 @@ <h3>sort<wbr>Controversial</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1118">controller/handler.ts:1118</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1122">controller/handler.ts:1122</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -1874,7 +1874,7 @@ <h3>sort<wbr>Hot</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L993">controller/handler.ts:993</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L997">controller/handler.ts:997</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -1902,7 +1902,7 @@ <h3>sort<wbr>New</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1040">controller/handler.ts:1040</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1044">controller/handler.ts:1044</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -1930,7 +1930,7 @@ <h3>sort<wbr>Old</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1087">controller/handler.ts:1087</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1091">controller/handler.ts:1091</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -1958,7 +1958,7 @@ <h3>sortQA</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1290">controller/handler.ts:1290</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1294">controller/handler.ts:1294</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -1986,7 +1986,7 @@ <h3>sort<wbr>Relevance</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1321">controller/handler.ts:1321</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1325">controller/handler.ts:1325</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2014,7 +2014,7 @@ <h3>sort<wbr>Rising</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1212">controller/handler.ts:1212</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1216">controller/handler.ts:1216</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2042,7 +2042,7 @@ <h3>sort<wbr>Top</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1165">controller/handler.ts:1165</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1169">controller/handler.ts:1169</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2070,7 +2070,7 @@ <h3>time<wbr>All</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1696">controller/handler.ts:1696</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1700">controller/handler.ts:1700</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2098,7 +2098,7 @@ <h3>time<wbr>Day</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1508">controller/handler.ts:1508</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1512">controller/handler.ts:1512</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2126,7 +2126,7 @@ <h3>time<wbr>Hour</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1461">controller/handler.ts:1461</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1465">controller/handler.ts:1465</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2154,7 +2154,7 @@ <h3>time<wbr>Month</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1602">controller/handler.ts:1602</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1606">controller/handler.ts:1606</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2182,7 +2182,7 @@ <h3>time<wbr>Week</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1555">controller/handler.ts:1555</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1559">controller/handler.ts:1559</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2210,7 +2210,7 @@ <h3>time<wbr>Year</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1649">controller/handler.ts:1649</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/controller/handler.ts#L1653">controller/handler.ts:1653</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2269,7 +2269,7 @@ <h3>deactivate</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/extension.ts#L248">extension.ts:248</a></li>
<li>Defined in <a href="https://github.com/ekarbe/reddit-viewer/blob/master/src/extension.ts#L259">extension.ts:259</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2840,11 +2840,11 @@ <h3>script</h3>
be hidden/unhidden the id is <code>foo</code>.</li>
</ul>
<p>Code:</p>
<pre><code class="language-javascript">\<span class="hljs-comment">// switches between display:none and display:initial</span>
<pre><code class="language-javascript">\<span class="hljs-comment">// switches between display:none and display:inherit</span>
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">expandElement</span>(<span class="hljs-params">id</span>) </span>{
element = <span class="hljs-built_in">document</span>.getElementById(id);
<span class="hljs-keyword">if</span>(element.style.display === <span class="hljs-string">"none"</span>) {
element.style.display = <span class="hljs-string">"initial"</span>;
element.style.display = <span class="hljs-string">"inherit"</span>;
} <span class="hljs-keyword">else</span> {
element.style.display = <span class="hljs-string">"none"</span>;
}
Expand Down
10 changes: 5 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,27 +109,27 @@ <h2>Features</h2>
<a href="#widget" id="widget" style="color: inherit; text-decoration: none;">
<h3>Widget</h3>
</a>
<p>The Reddit-Viewer widget enables an optional view to access the frontpahe and your favorite subreddit fast and resource-friendly.</p>
<p>The Reddit-Viewer widget enables an optional view to access the frontpage and your favorite subreddit fast and resource-friendly.</p>
<img src="https://raw.githubusercontent.com/ekarbe/reddit-viewer/master/assets/gifs/widget.gif" alt="">
<a href="#sort-the-articles" id="sort-the-articles" style="color: inherit; text-decoration: none;">
<h4>Sort The Articles</h4>
</a>
<p>Sort the articles by the default sort-types.</p>
<p>Sort the articles in the widget by the default sort-types. You can define the default sort in the configuration.</p>
<img src="https://raw.githubusercontent.com/ekarbe/reddit-viewer/master/assets/gifs/widget-sort.gif" alt="">
<a href="#open-an-article" id="open-an-article" style="color: inherit; text-decoration: none;">
<h3>Open An Article</h3>
</a>
<p>You can open the articles displayed in the widget in the code viewer or your default browser.</p>
<p>You can open the articles displayed in the widget in the code viewer or your default browser. The primary action can be defined in the configuration. The secondary action can be triggered in the context menu.</p>
<img src="https://raw.githubusercontent.com/ekarbe/reddit-viewer/master/assets/gifs/widget-open.gif" alt="">
<a href="#code-viewer" id="code-viewer" style="color: inherit; text-decoration: none;">
<h3>Code Viewer</h3>
</a>
<p>The Reddit-Viewer code viewer is a webview which allows you to browse Reddit in code style.</p>
<p>The Reddit-Viewer code viewer is a webview which allows you to browse Reddit in code style. Even though it is a webview, it is pretty lightweight and simple.</p>
<img src="https://raw.githubusercontent.com/ekarbe/reddit-viewer/master/assets/gifs/code-viewer.gif" alt="">
<a href="#open-a-subreddit" id="open-a-subreddit" style="color: inherit; text-decoration: none;">
<h4>Open A Subreddit</h4>
</a>
<p>Open a subreddit and browse its articles.</p>
<p>Open a subreddit and browse its articles. You can see a preview if the post contains a thumbnail.</p>
<img src="https://raw.githubusercontent.com/ekarbe/reddit-viewer/master/assets/gifs/code-viewer-subreddit.gif" alt="">
<a href="#global-search" id="global-search" style="color: inherit; text-decoration: none;">
<h4>Global Search</h4>
Expand Down
Loading

0 comments on commit 1c7619a

Please sign in to comment.