Skip to content

Commit

Permalink
Merge branch 'environ' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofjeziorny authored Oct 3, 2024
2 parents 4187141 + 0f16ae7 commit 14c954c
Show file tree
Hide file tree
Showing 19 changed files with 211 additions and 159 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -194,5 +194,8 @@ typings/
# ublock + chromium
/uBOLite.chromium.mv3
/chromium-profile
# direnv
/.direnv

# KJ
deploy.sh
gunicorn.sh
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: serve
.PHONY: serve install

serve:
python manage.py runserver
Expand All @@ -12,5 +12,8 @@ test:
format:
black bookmarks
black siteroot
npx prettier bookmarks/frontend --write
npx prettier bookmarks/frontend --write
npx prettier bookmarks/styles --write

install:
.venv/bin/pip install -r requirements.txt --upgrade
6 changes: 3 additions & 3 deletions bookmarks/frontend/components/SearchAutoComplete.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
{/if}
{#each suggestions.tags as suggestion}
<li class="menu-item" class:selected={selectedIndex === suggestion.index}>
<a href="#" on:mousedown|preventDefault={() => completeSuggestion(suggestion)}>
<a href={'#'} on:mousedown|preventDefault={() => completeSuggestion(suggestion)}>
{suggestion.label}
</a>
</li>
Expand All @@ -221,7 +221,7 @@
{/if}
{#each suggestions.recentSearches as suggestion}
<li class="menu-item" class:selected={selectedIndex === suggestion.index}>
<a href="#" on:mousedown|preventDefault={() => completeSuggestion(suggestion)}>
<a href={'#'} on:mousedown|preventDefault={() => completeSuggestion(suggestion)}>
{suggestion.label}
</a>
</li>
Expand All @@ -232,7 +232,7 @@
{/if}
{#each suggestions.bookmarks as suggestion}
<li class="menu-item" class:selected={selectedIndex === suggestion.index}>
<a href="#" on:mousedown|preventDefault={() => completeSuggestion(suggestion)}>
<a href={'#'} on:mousedown|preventDefault={() => completeSuggestion(suggestion)}>
{suggestion.label}
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion bookmarks/frontend/components/TagAutocomplete.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
<!-- menu list items -->
{#each suggestions as tag,i}
<li class="menu-item" class:selected={selectedIndex === i}>
<a href="#" on:mousedown|preventDefault={() => complete(tag)}>
<a href={'#'} on:mousedown|preventDefault={() => complete(tag)}>
{tag.name}
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion bookmarks/templates/bookmarks/bookmark_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,4 @@
<div class="bookmark-pagination{% if request.user_profile.sticky_pagination %} sticky{% endif %}">
{% pagination bookmark_list.bookmarks_page %}
</div>
{% endif %}
{% endif %}
2 changes: 1 addition & 1 deletion bookmarks/templates/bookmarks/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ <h1>LINKDING</h1>
{% endblock %}
</div>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion bookmarks/templates/bookmarks/nav_menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@
</ul>
</div>
</div>
{% endhtmlmin %}
{% endhtmlmin %}
2 changes: 1 addition & 1 deletion bookmarks/templates/bookmarks/tag_cloud.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<a href="?{% add_tag_to_query tag.name %}"
class="mr-2" data-is-tag-item>
<span
class="highlight-char">{{ tag.name|first_char }}</span><span>{{ tag.name|remaining_chars:1 }}</span>
class="highlight-char">{{ tag.name|first_char }}</span><span>{{ tag.name|remaining_chars:1 }}</span>
</a>
{% else %}
{# Render remaining tags normally #}
Expand Down
2 changes: 1 addition & 1 deletion bookmarks/templates/settings/general.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ <h2>Profile</h2>
<div class="form-input-hint">
Enabling this feature will automatically create snapshots of bookmarked websites on the <a
href="https://web.archive.org/" target="_blank" rel="noopener">Internet Archive Wayback
Machine</a>.
Machine</a>.
This allows to preserve, and later access the website as it was at the point in time it was bookmarked, in
case it goes offline or its content is modified.
Please consider donating to the <a href="https://archive.org/donate" target="_blank"
Expand Down
2 changes: 1 addition & 1 deletion bookmarks/templates/settings/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
</svg>
</a>
</li>
{% endif %}
{% endif %}
</ul>
<br>
47 changes: 47 additions & 0 deletions deploy_excludes
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
__pycache__
_sources
._*
.DS_Store
.editorconfig
.env
.env.*
.git
.gitignore
.github
.svn
.venv
*._*
*.kdev4
*.lock
*.log
*.log.*
*.pid
*.pyc
*.pyo
*.scss
*.sqlite3
*.swp
*.vim
*.vscode
*~
/bookmarks/static/favicon.png
data
db.sqlite3
deploy_excludes
deploy_includes
deploy.sh
develserver.sh
docs
docker
Gruntfile.js
gulpfile.js
media
node_modules
rollup.config.mjs
sass
scss
/siteroot/settings/dev.py
/static
tmp
vim
vim/*.sh
2 changes: 2 additions & 0 deletions deploy_includes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bookmarks/styles/*
migrations/__init__.py
Loading

0 comments on commit 14c954c

Please sign in to comment.