{"id":13700339,"url":"https://github.com/zmoyi/WalineJson","last_synced_at":"2025-05-04T18:35:01.771Z","repository":{"id":42129662,"uuid":"480736129","full_name":"zmoyi/WalineJson","owner":"zmoyi","description":"一款基于Waline客户端的typecho插件","archived":false,"fork":false,"pushed_at":"2022-04-12T09:47:10.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-13T06:33:20.575Z","etag":null,"topics":["typecho","typecho-plugin","waline"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zmoyi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-12T09:17:35.000Z","updated_at":"2022-04-12T17:40:19.000Z","dependencies_parsed_at":"2022-08-12T07:21:06.729Z","dependency_job_id":null,"html_url":"https://github.com/zmoyi/WalineJson","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmoyi%2FWalineJson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmoyi%2FWalineJson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmoyi%2FWalineJson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmoyi%2FWalineJson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zmoyi","download_url":"https://codeload.github.com/zmoyi/WalineJson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252383180,"owners_count":21739286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["typecho","typecho-plugin","waline"],"created_at":"2024-08-02T20:00:54.445Z","updated_at":"2025-05-04T18:34:56.751Z","avatar_url":"https://github.com/zmoyi.png","language":"PHP","funding_links":[],"categories":["Plugins"],"sub_categories":[],"readme":"### 客户端安装\n\n```html\n\u003c!-- 使用短链接获取最新的默认文件 --\u003e\n\u003cscript src=\"//cdn.jsdelivr.net/npm/@waline/client\"\u003e\u003c/script\u003e\n\n\u003c!-- 省略版本号以自动应用最新版本 --\u003e\n\u003cscript src=\"//cdn.jsdelivr.net/npm/@waline/client/dist/Waline.min.js\"\u003e\u003c/script\u003e\n\n\u003c!-- 或者手动指定最新版本 --\u003e\n\u003cscript src=\"//cdn.jsdelivr.net/@waline/clien@latest/dist/Waline.min.js\"\u003e\u003c/script\u003e\n```\n\n## HTML 引入 (客户端)\n\n在你的网页中进行如下设置:\n\n1. 使用 CDN 引入 Waline: `//cdn.jsdelivr.net/npm/@waline/client`。\n\n2. 创建 `\u003cscript\u003e` 标签使用 `Waline()` 初始化，并传入必要的 `el` 与 `serverURL` 选项。\n\n    - `el` 选项是 Waline 渲染使用的元素，你可以设置一个字符串形式的 CSS 选择器或者一个 HTMLElement 对象。\n    - `serverURL` 是服务端的地址，即上一步获取到的值。\n\n\n\n   ```html\n   \u003chead\u003e\n     \u003c!-- ... --\u003e\n     \u003cscript src=\"//cdn.jsdelivr.net/npm/@waline/client\"\u003e\u003c/script\u003e\n     \u003c!-- ... --\u003e\n   \u003c/head\u003e\n   \u003cbody\u003e\n     \u003c!-- ... --\u003e\n     \u003cdiv id=\"waline\"\u003e\u003c/div\u003e\n     \u003cscript\u003e\n       Waline({\n         el: '#waline',\n         serverURL: 'https://your-domain.vercel.app',\n       });\n     \u003c/script\u003e\n   \u003c/body\u003e\n   ```\n\n3. 评论服务此时就会在你的网站上成功运行 🎉\n\n### 配置\n\n**大部分配置和waline官网配置一样**\n\n```html\n\u003cscript\u003e\n    Waline({\n        el: '#waline',\n        serverURL: 'your domain name/api/',\n        path:'\u003c?php $this-\u003ecid() ?\u003e',\n        dark:'body[class=\"uk-light\"]',\n        avatar: 'retro',\n        copyright: false,\n        math:true,\n        highlight: 'github-dark-dimmed',\n        login:'disable'\n\n    });\n\u003c/script\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmoyi%2FWalineJson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzmoyi%2FWalineJson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmoyi%2FWalineJson/lists"}