could you include an example of importing a function from a script in the README?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript
- Lĩnh vực
- documentation
Hướng nghiên cứu
Start with the README and review how js-engine currently loads scripts. Use the reported nifty-links.js path and its exported getFromOpenGraph(url) function as the example, including the expected rendered HTML result and the related CSS path. Done means a newcomer can follow the README to reproduce this setup.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hi,
I'm trying to write modular JavaScript and have one file for each script. It's not working out for me ;)
I'll explain more, but pretty sure it would be helpful just to show how it would work in your readme.
Okay I have nifty-links.js
vault/js/scripts/nifty-links
that has an exported function called "getFromOpenGraph(url)"
I have a nifty-links.css
./obsidian/snippets/nifty-links.css
This all works using a basic liveserver in a browser.
I want to use js-engine to call that function and pass it a URL, and then what should come back is rendered HTML.
- Ngôn ngữ chính
- TypeScript
- Star
- 191
- Fork
- 15
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của mProjectsCode/obsidian-js-engine-plugin
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
ImportJs not working on Desktop Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
mProjectsCode/obsidian-js-engine-plugin#50 · 3 bình luận ·
-
Opening a random note in a Note Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
mProjectsCode/obsidian-js-engine-plugin#32 · 7 bình luận ·
Tất cả issue của mProjectsCode/obsidian-js-engine-plugin
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
motiondivision/motion#3849 ·
-
Add: S Play Event HD Đang mởcheck:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Improvement for contact popover Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
LiteLLM proxy response_cost (x-litellm-response-cost) is never applied to ChatModelOutput.cost Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
i-am-bee/beeai-framework#1697 · 1 reaction ·
-
Support bun dedupe Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
antfu/node-modules-inspector#214 ·