Skip to content

Commit efc6128

Browse files
Merge branch 'environ' into master
2 parents ba904ed + 4beaa76 commit efc6128

19 files changed

+310
-216
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,5 +194,8 @@ typings/
194194
# ublock + chromium
195195
/uBlock0.chromium
196196
/chromium-profile
197-
# direnv
198197
/.direnv
198+
199+
# KJ
200+
deploy.sh
201+
gunicorn.sh

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: serve
1+
.PHONY: serve install
22

33
serve:
44
python manage.py runserver
@@ -12,5 +12,8 @@ test:
1212
format:
1313
black bookmarks
1414
black siteroot
15-
npx prettier bookmarks/frontend --write
15+
npx prettier bookmarks/frontend --write
1616
npx prettier bookmarks/styles --write
17+
18+
install:
19+
.venv/bin/pip install -r requirements.txt --upgrade

bookmarks/frontend/components/SearchAutoComplete.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
{/if}
211211
{#each suggestions.tags as suggestion}
212212
<li class="menu-item" class:selected={selectedIndex === suggestion.index}>
213-
<a href="#" on:mousedown|preventDefault={() => completeSuggestion(suggestion)}>
213+
<a href={'#'} on:mousedown|preventDefault={() => completeSuggestion(suggestion)}>
214214
{suggestion.label}
215215
</a>
216216
</li>
@@ -221,7 +221,7 @@
221221
{/if}
222222
{#each suggestions.recentSearches as suggestion}
223223
<li class="menu-item" class:selected={selectedIndex === suggestion.index}>
224-
<a href="#" on:mousedown|preventDefault={() => completeSuggestion(suggestion)}>
224+
<a href={'#'} on:mousedown|preventDefault={() => completeSuggestion(suggestion)}>
225225
{suggestion.label}
226226
</a>
227227
</li>
@@ -232,7 +232,7 @@
232232
{/if}
233233
{#each suggestions.bookmarks as suggestion}
234234
<li class="menu-item" class:selected={selectedIndex === suggestion.index}>
235-
<a href="#" on:mousedown|preventDefault={() => completeSuggestion(suggestion)}>
235+
<a href={'#'} on:mousedown|preventDefault={() => completeSuggestion(suggestion)}>
236236
{suggestion.label}
237237
</a>
238238
</li>

bookmarks/frontend/components/TagAutocomplete.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
<!-- menu list items -->
120120
{#each suggestions as tag,i}
121121
<li class="menu-item" class:selected={selectedIndex === i}>
122-
<a href="#" on:mousedown|preventDefault={() => complete(tag)}>
122+
<a href={'#'} on:mousedown|preventDefault={() => complete(tag)}>
123123
{tag.name}
124124
</a>
125125
</li>

bookmarks/templates/bookmarks/bookmark_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,4 @@
158158
<div class="bookmark-pagination{% if request.user_profile.sticky_pagination %} sticky{% endif %}">
159159
{% pagination bookmark_list.bookmarks_page %}
160160
</div>
161-
{% endif %}
161+
{% endif %}

bookmarks/templates/bookmarks/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,4 @@ <h1>LINKDING</h1>
9898
{% endblock %}
9999
</div>
100100
</body>
101-
</html>
101+
</html>

bookmarks/templates/bookmarks/nav_menu.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@
8080
</ul>
8181
</div>
8282
</div>
83-
{% endhtmlmin %}
83+
{% endhtmlmin %}

bookmarks/templates/bookmarks/tag_cloud.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<a href="?{% add_tag_to_query tag.name %}"
2121
class="mr-2" data-is-tag-item>
2222
<span
23-
class="highlight-char">{{ tag.name|first_char }}</span><span>{{ tag.name|remaining_chars:1 }}</span>
23+
class="highlight-char">{{ tag.name|first_char }}</span><span>{{ tag.name|remaining_chars:1 }}</span>
2424
</a>
2525
{% else %}
2626
{# Render remaining tags normally #}

bookmarks/templates/settings/general.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ <h2>Profile</h2>
194194
<div class="form-input-hint">
195195
Enabling this feature will automatically create snapshots of bookmarked websites on the <a
196196
href="https://web.archive.org/" target="_blank" rel="noopener">Internet Archive Wayback
197-
Machine</a>.
197+
Machine</a>.
198198
This allows to preserve, and later access the website as it was at the point in time it was bookmarked, in
199199
case it goes offline or its content is modified.
200200
Please consider donating to the <a href="https://archive.org/donate" target="_blank"

bookmarks/templates/settings/nav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
</svg>
2020
</a>
2121
</li>
22-
{% endif %}
22+
{% endif %}
2323
</ul>
2424
<br>

deploy_excludes

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
__pycache__
2+
_sources
3+
._*
4+
.DS_Store
5+
.editorconfig
6+
.env
7+
.env.*
8+
.git
9+
.gitignore
10+
.github
11+
.svn
12+
.venv
13+
*._*
14+
*.kdev4
15+
*.lock
16+
*.log
17+
*.log.*
18+
*.pid
19+
*.pyc
20+
*.pyo
21+
*.scss
22+
*.sqlite3
23+
*.swp
24+
*.vim
25+
*.vscode
26+
*~
27+
/bookmarks/static/favicon.png
28+
data
29+
db.sqlite3
30+
deploy_excludes
31+
deploy_includes
32+
deploy.sh
33+
develserver.sh
34+
docs
35+
docker
36+
Gruntfile.js
37+
gulpfile.js
38+
media
39+
node_modules
40+
rollup.config.mjs
41+
sass
42+
scss
43+
/siteroot/settings/dev.py
44+
/static
45+
tmp
46+
vim
47+
vim/*.sh

deploy_includes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bookmarks/styles/*
2+
migrations/__init__.py

0 commit comments

Comments
 (0)