Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
4,611 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"plugins": ["@typescript-eslint"], | ||
"parser": "@typescript-eslint/parser", | ||
"rules": { | ||
"import/prefer-default-export": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/no-unused-vars": ["error", { "ignoreRestSiblings": true }], | ||
"quotes": ["error", "single", { "allowTemplateLiterals": true }] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# These are supported funding model platforms | ||
|
||
custom: https://www.buymeacoffee.com/yoyurec | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help improve theme | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Info:** | ||
- OS: | ||
- Logseq ver: | ||
- Plugin ver: | ||
- [ ] ⚠ Do i have issue with DISABLED my `custom.css`? | ||
|
||
**Description:** | ||
A clear and concise description of what the bug is...... | ||
|
||
**To Reproduce:** | ||
... | ||
|
||
**Expected behavior:** | ||
... | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Attach files** | ||
Add (via drag-n-drop) .zip with `.md` files (if it needs) to help with bugfixind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Idea** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Screenshots** | ||
Add some pictures to get the idea if needed | ||
|
||
**Attach files** | ||
Add (via drag-n-drop) .zip with `.md` files if it help me with experiments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Releases | ||
|
||
env: | ||
PLUGIN_NAME: logseq-awesome-links | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js 16 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16" | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2.2.2 | ||
with: | ||
version: 7 | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Build dist | ||
run: pnpm build | ||
|
||
- name: Install zip | ||
uses: montudor/action-zip@v1 | ||
|
||
- name: Release | ||
run: npx semantic-release | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
.DS_Store | ||
dist | ||
*.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"arrowParens": "always", | ||
"bracketSameLine": false, | ||
"bracketSpacing": true, | ||
"embeddedLanguageFormatting": "auto", | ||
"htmlWhitespaceSensitivity": "css", | ||
"insertPragma": false, | ||
"jsxSingleQuote": false, | ||
"printWidth": 80, | ||
"proseWrap": "preserve", | ||
"quoteProps": "as-needed", | ||
"requirePragma": false, | ||
"semi": true, | ||
"singleQuote": true, | ||
"tabWidth": 4, | ||
"trailingComma": "es5", | ||
"useTabs": false, | ||
"vueIndentScriptAndStyle": false | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<h1 align="center">"Awesome Links" plugin for Logseq</h1> | ||
<p align="center"> | ||
<a href="https://github.com/yoyurec/logseq-awesome-links"> | ||
<img src="icon.png" alt="logo" width="128" height="128" /> | ||
</a> | ||
</p> | ||
|
||
* **Favicons** for external links! | ||
* **Pages icons** for internal links | ||
* Custom **Journal icons** | ||
* Emoji `icon::`extended to hundreds icons set via Nerd fonts support | ||
|
||
|
||
## If you ❤ what i'm doing - you can support my work! ☕ | ||
<a href="https://www.buymeacoffee.com/yoyurec" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 50px !important;width: 178px !important;" ></a> | ||
|
||
## Install | ||
From Logseq store - `Plugins -> Marketplace`. | ||
|
||
![](./screenshots/market.pn) | ||
|
||
## Features | ||
![](./screenshots/settings-features.png) | ||
|
||
|
||
|
||
### ⭐ Auto favicons for external links | ||
|
||
<img src="screenshots/favicons.png" width="640"> | ||
|
||
### ✨ Page icons | ||
|
||
Enable feature to show Logseq page icon for internal links in content. | ||
In addition you can config icon inheriting from related page proprty, to avoid manual setting `icon::` for common pages. | ||
For ex.: | ||
* create "Projects" page, set `icon::` for it | ||
* create "Some project" page, set `page-type:: [[Projects]]` | ||
* set in plugin settings "Inherit icon from..." `page-type` | ||
* ...and all pages with `page-type:: [[Projects]]` will have inherited "Projects" page icon! | ||
|
||
![Page icons](screenshots/page-icons.png) | ||
|
||
### ✨ Custom page icons | ||
|
||
3600+ icons combined from popular sets (Font Awesome, Material Design, Seti-UI, etc...)! | ||
Native Logseq props `icon::` extended with Nerd icons font: | ||
* Search in collection ([Icons Cheat Sheet](https://www.nerdfonts.com/cheat-sheet)), | ||
* select | ||
* press "Copy icon", | ||
* paste to `icon::` props | ||
|
||
Banners & Tabs plugin support included 😎 | ||
|
||
![Nerd icons](screenshots/nerd-icons.png) | ||
|
||
![Nerd font](screenshots/nerd.png) | ||
|
||
### ✨ Journal icon | ||
|
||
Can be customized in settings. | ||
|
||
![Journal icon](screenshots/journal-icon.png) | ||
|
||
## Recommended plugins/themes | ||
* [Solarized Extended](https://github.com/yoyurec/logseq-solarized-extended-theme) | ||
|
||
## What is Logseq? | ||
Logseq is a privacy-first, open-source knowledge base. Visit https://logseq.com for more information. | ||
|
||
## Support | ||
* Read about Logseq plugin updates on Dicscord - https://discord.com/channels/725182569297215569/896368413243494430 | ||
* Ask about Logseq plugins on Dicscord - https://discord.com/channels/725182569297215569/752845167030960141 | ||
* If you have any questions, issues or feature request, use the issue submission on GitHub: https://github.com/yoyurec/logseq-awesome-links/issues | ||
|
||
## Credits | ||
* Icon - https://www.flaticon.com/free-icon/social-media_4089948?related_id=4089948 | ||
|
||
## License | ||
|
||
[MIT License](./LICENSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Awesome Links plugin</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script src="/src/js/awesomeLinks.ts" type="module"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"name": "logseq-awesome-links", | ||
"description": "Favicons for external links, page icons for internal", | ||
"version": "0.1.0", | ||
"author": "yoyurec <yoyurec@gmail.com>", | ||
"main": "dist/index.html", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "tsc && vite build && cp -f -r src/css dist/assets", | ||
"preinstall": "npx only-allow pnpm", | ||
"semantic-release": "semantic-release" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "cz-conventional-changelog" | ||
} | ||
}, | ||
"dependencies": { | ||
"@logseq/libs": "0.0.8" | ||
}, | ||
"devDependencies": { | ||
"@semantic-release/changelog": "^6.0.1", | ||
"@semantic-release/exec": "^6.0.3", | ||
"@semantic-release/git": "^10.0.1", | ||
"@semantic-release/npm": "^9.0.1", | ||
"@typescript-eslint/eslint-plugin": "^5.37.0", | ||
"@typescript-eslint/parser": "^5.37.0", | ||
"conventional-changelog-conventionalcommits": "^5.0.0", | ||
"cz-conventional-changelog": "3.3.0", | ||
"eslint": "^8.23.1", | ||
"semantic-release": "^19.0.5", | ||
"typescript": "^4.8.3", | ||
"vite": "3.1.0", | ||
"vite-plugin-logseq": "^1.1.2" | ||
}, | ||
"license": "MIT", | ||
"logseq": { | ||
"title": "Awesome links", | ||
"icon": "./icon.png", | ||
"id": "logseq-awesome-links" | ||
}, | ||
"repository": "https://github.com/yoyurec/logseq-awesome-links.git", | ||
"effect": true, | ||
"sponsors": [ | ||
"https://www.buymeacoffee.com/yoyurec" | ||
] | ||
} |
Oops, something went wrong.