Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2f70015
Merge branch 'fix/chrome-icon'
exhuma Aug 29, 2022
3a17445
updated links to show when hovered or selected
LukasJanik55 Nov 3, 2022
becef51
styling of shown link
LukasJanik55 Nov 3, 2022
9542409
Make error blocks closeable
exhuma Nov 6, 2022
3ae68c3
Version bumped to 1.2.3
exhuma Nov 6, 2022
f748a95
Merge branch 'fix/1.2.3'
exhuma Nov 6, 2022
9120887
Run CI pipeline on same image as dev-container
exhuma Nov 6, 2022
a81fc20
Re-enable inkscape error-messages on build
exhuma Nov 6, 2022
603f15e
Clarify development docs
exhuma Nov 6, 2022
ee006e2
Merge branch 'exhuma:master' into issue#16
LukasJanik55 Nov 7, 2022
ab3a96a
Fixed to show link when controlling by keyboard;
LukasJanik55 Nov 22, 2022
a6586db
Refactor settings (dataclass vs business logic)
exhuma Aug 17, 2022
1aae8f4
Update TODO
exhuma Aug 17, 2022
e656ec3
Improve check for supported settings-version
exhuma Aug 19, 2022
7c61f2b
Fix copy/paste error
exhuma Aug 19, 2022
3321d18
Add header for the global-settings
exhuma Aug 19, 2022
9391115
Add a demo-block for settings in version V3
exhuma Aug 19, 2022
ef372e3
Improve type-hint
exhuma Oct 2, 2022
4cb4b0d
Add simple unit-tests based on vitest
exhuma Sep 15, 2022
21283a1
Fix loading of tailwind and postcss during demo
exhuma Oct 16, 2022
035ad85
Increase test-coverage of the link-collection class
exhuma Oct 16, 2022
939e07b
Add CI jobs for unit-tests
exhuma Oct 16, 2022
64dedb8
Add playwright action to github CI workflow
exhuma Oct 16, 2022
4b0b211
Replace playwright action with CLI command
exhuma Oct 16, 2022
05ee94b
Fix errors in the "link-list"
exhuma Oct 16, 2022
0df319f
updated links to show when hovered or selected
LukasJanik55 Nov 3, 2022
292f274
styling of shown link
LukasJanik55 Nov 3, 2022
0d2e1de
Ensure it shows up in the extension popup
exhuma Nov 13, 2022
9616bb6
Pulled change from issue-16-integration;
LukasJanik55 Nov 22, 2022
43e36b4
Fixed index error on keyboard control;
LukasJanik55 Nov 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .devcontainer/init-container.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
set -xe
npm clean-install
pre-commit install
npx playwright install-deps
npx playwright install
File renamed without changes.
27 changes: 26 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,36 @@ name: CI

on:
push:
tags: ["v*"]
pull_request:

jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
- run: npm clean-install
- run: npm run test-unit
e2e-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
- run: npm clean-install
- run: npx playwright install-deps
- run: npm run test-e2e
build:
runs-on: ubuntu-latest
if: >
github.event_name == 'push' &&
startsWith(github.event.ref, 'refs/tags')
needs:
- unit-tests
- e2e-tests
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/build
/dist
/unpackaged
coverage
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.2.3

- Allow error messages to be closed

# 1.2.2

- Fix default icon for Chromium based browsers (edge, chrome, ...)
Expand Down
9 changes: 3 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@ mozilla: pages bundled_docs
icons:
mkdir -p unpackaged/chrome/assets
inkscape -w 48 -h 48 assets/icon.svg \
-o unpackaged/chrome/assets/icon48.png \
2>/dev/null
-o unpackaged/chrome/assets/icon48.png
inkscape -w 96 -h 96 assets/icon.svg \
-o unpackaged/chrome/assets/icon96.png \
2>/dev/null
-o unpackaged/chrome/assets/icon96.png
inkscape -w 128 -h 128 assets/icon.svg \
-o unpackaged/chrome/assets/icon128.png \
2>/dev/null
-o unpackaged/chrome/assets/icon128.png

chrome: pages bundled_docs icons
cp -r build/* unpackaged/chrome/
Expand Down
10 changes: 5 additions & 5 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- Add a text-search for bookmarks
- Allow sources to be enabled/disabled
- Add default tags per source
- Replace arrays with sets where possible
- Add a name to each source
- Deduplicate bookmarks (if more than one source has the same bookmark, it is added with duplicates)
- New Source Settings
- Allow sources to be enabled/disabled
- Add default tags per source
- Add a name to each source
- Replace arrays with sets where possible
- Is "postcss" still needed?
7 changes: 7 additions & 0 deletions demo/demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ function initSettingsUI() {
let settingsElementV2 = document.getElementById(
"SettingsV2"
) as SettingsElement;
let settingsElementV3 = document.getElementById(
"SettingsV3"
) as SettingsElement;
settingsElementV2.settings = JSON.stringify({
remoteUrls: [
"https://raw.githubusercontent.com/exhuma/dotfiles/master/bookmarks.json",
Expand All @@ -25,6 +28,10 @@ function initSettingsUI() {
enableBrowserBookmarks: true,
version: 2,
});
settingsElementV3.settings = JSON.stringify({
sources: [],
version: 3,
});
settingsElementV2.addEventListener("change", (event) => {
let evt = event as CustomEvent;
console.log(JSON.parse(evt.detail["settings"]));
Expand Down
22 changes: 22 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@
#Content {
flex-grow: 1;
}

#Settings {
margin: 2em;
}

H1 {
color: black;
border-bottom: 1px solid black;
margin-bottom: 1em;
}
</style>
</head>

Expand Down Expand Up @@ -175,6 +185,18 @@ <h1>Settings V1</h1>
<h1>Settings V2</h1>
<sh-settings id="SettingsV2" settings="{}"></sh-settings>
</div>
<div
style="
float: left;
padding: 1rem;
width: 400px;
height: 500px;
border: 1px solid black;
"
>
<h1>Settings V3</h1>
<sh-settings id="SettingsV3" settings="{}"></sh-settings>
</div>
</div>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ but provides a reproducible build environment with all required system
dependencies. When working with VS-Code (including the
`ms-vscode-remote.vscode-remote-extensionpack` extension) the development
container can be built manually by opening the command-pallette (CTRL-SHIFT-P)
and selecting `Remote-Containers: Rebuild Container` command. This can also be
and selecting `Dev-Containers: Rebuild Container` command. This can also be
used any time something in the container has changed.

1. Clone the Repository
Expand All @@ -19,11 +19,11 @@ used any time something in the container has changed.

1. Build

- With VS-Code using the "Remote Containers" extension
- With VS-Code using the "Remote Development" extension

- Build the development container

Select "Remote-Containers: Rebuild Container" from the command-pallette
Select "Dev Containers: Rebuild Container" from the command-pallette
(CTRL-SHIFT-P)

- Build the extension
Expand Down
Loading