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 Sep 16, 2024
2 parents 53e4aeb + c2b0672 commit 06dd03f
Show file tree
Hide file tree
Showing 20 changed files with 349 additions and 248 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
/uBlock0.chromium
/chromium-profile
# direnv
/.direnv

# KJ
deploy.sh
gunicorn.sh
5 changes: 4 additions & 1 deletion 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 @@ -13,3 +13,6 @@ format:
black bookmarks
black siteroot
npx prettier bookmarks/frontend --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 @@ -152,4 +152,4 @@
<div class="bookmark-pagination">
{% 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
36 changes: 18 additions & 18 deletions bookmarks/templates/settings/general.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,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 Expand Up @@ -331,23 +331,23 @@ <h2>Export</h2>
<h2>About</h2>
<table class="table">
<tbody>
<tr>
<td>Version</td>
<td>{{ version_info }}</td>
</tr>
<tr>
<td rowspan="3" style="vertical-align: top">Links</td>
<td><a href="https://github.com/sissbruecker/linkding/"
target="_blank">GitHub</a></td>
</tr>
<tr>
<td><a href="https://github.com/sissbruecker/linkding#documentation"
target="_blank">Documentation</a></td>
</tr>
<tr>
<td><a href="https://github.com/sissbruecker/linkding/blob/master/CHANGELOG.md"
target="_blank">Changelog</a></td>
</tr>
<tr>
<td>Version</td>
<td>{{ version_info }}</td>
</tr>
<tr>
<td rowspan="3" style="vertical-align: top">Links</td>
<td><a href="https://github.com/sissbruecker/linkding/"
target="_blank">GitHub</a></td>
</tr>
<tr>
<td><a href="https://github.com/sissbruecker/linkding#documentation"
target="_blank">Documentation</a></td>
</tr>
<tr>
<td><a href="https://github.com/sissbruecker/linkding/blob/master/CHANGELOG.md"
target="_blank">Changelog</a></td>
</tr>
</tbody>
</table>
</section>
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 06dd03f

Please sign in to comment.