A blogging tool powered by GitHub API. Write your blog on GitHub issue.
https://github.com/LoeiFy/Mirror/wiki
MIT
A blogging tool powered by GitHub API. Write your blog on GitHub issue.
Home Page: https://mirror.am0200.com
License: MIT License
A blogging tool powered by GitHub API. Write your blog on GitHub issue.
https://github.com/LoeiFy/Mirror/wiki
MIT
api.github.com/graphql:1 Failed to load resource: the server responded with a status of 401 (Unauthorized)
这有没有可能是生成hash时的错误, 生成hash时是用token + xxx.github.io一直报401
尝试了几次都失败了
The order of the posts in terms of date seems a bit odd at first glance : http://ibrahim-islam.github.io
Because updated_at
is displayed but the order of results returned and shown on the view is ordered by created_at
. Either created_at
needs to be displayed or results need to be sorted according to updated_at
. @LoeiFy Let me know which one you decide and I can do a PR.
How to add comment for blog? I try to fitment and Disqus but not used! so I want to your blog how to add comment? thank you very much!
你好。
根据你的repo,我搭建了一个博客:http://mr.bright.biz.st/ ,不过某个嵌入了html code的帖子http://mr.bright.biz.st/#4 ,为何嵌入的html code无法得到渲染?
如何解决?
看到基于mirror的另一个项目https://github.com/JimmehCai/Journey,我根据它,也搭建了一个博客:
http://jn.bright.biz.st/ ,而该博客里的嵌入了html code的帖子:http://jn.bright.biz.st/#4 ,其嵌入的html code却得到了渲染,为何它的行,你的却不行呢?
https://mirror.am0200.com/已失效,进不去了,显示Something Error
Error: Request failed with status code 401
mirror build
的时候报错Error: Unable to parse.
怎么处理呢?
https://github.com/bingoogolapple/BGAIssueBlog-Web
之前也有过类似的想法:smile:,通过抓取 GitHub 上的 Issues,并结合 GitHub Pages 来搭建个人博客站点 ,不过我这种方式如果不成为开发者的话抓取不到所有的 Issue
您好, 我从npm安装最新的mirror, 生成的index.html
中访问build.xxx.js
的路径是 /build.xxx.js
。
我的项目名是blog, 访问https://zonzely.github.io/blog
时, 会报build.xxx.js
404, 我把index.html
中的路径改成/blog/build.xxx.js
就可以访问正常了。
另外, 新版本的mirror, 好像不能右键新标签打开文章了.
谢谢
不知道为什么 我的账号自己生成一个token 之后 ,填入index.html 访问后就报401 然后去setting 里看 token 就消失了。提示要应用授权,不知道如何是好。
Give the user an option to configure whether comments are loaded automatically or not shown until "View Comments" is clicked (the default).
自己简单扩展了下,感觉代码扩展好麻烦
点击按钮可以显示所有的label,点击label显示对应的issue
根据github issue创建博文的博客工具,简洁高效,无需折腾。
您好,请教一个问题:在markdown 中书写的 iframe 没有渲染,这是由于哪方面做了限制吗?还是有其他方面的考虑?
非常感谢
按照 http://mirror.am0200.com/#/posts/11 的描述配置完后,发现出现如下错误:
估计是 token 有问题?我申请的 token 如下:
ef3bb921d1efccxxxxxx535ad0319d889c66d197
,按照描述 用 # 分割,
token: #ef3bb921d1efccxxxxxx535ad0319d889c66d197
但不清楚为什么例子给出的内容:
5#c31bffc137f44faf7efc4a84da827g7ca2cfeaa
#号前多了个5 ,不清楚是什么意思?不知道是否是因为这个问题导致?
您好, github好像不支持TOC, 可以添加支持TOC吗
organization的blog项目,同样是在issue里面写blog,怎样获取用户名和token?
请问,按照教程搭好了博客,只是 favicon 不显示,是空白的,这个要怎么解决呢,更换文件夹内的favicon.ico
文件,重新 push 上来吗?
xhr.setRequestHeader("Accept", "application/vnd.github.v3.html")
报错如下: Unhandled promise rejection ReferenceError: “Promise”未定义
现在只支持按issue的发布或更新时间来排序,实际整理博文还是有些僵硬。
能不能像hugo那样,支持在issue头部手动添加时间?
Hi LoeiFy,
I find this blog theme can not well support Chinese characters. In Windows rather than Mac OS, all Chinese characters will be shown in sans-serif which is not very beautiful.
To optimize the display of Chinese characters both in Windows and Mac OS, I just add PingFang SC
and Microsoft YaHei
into the font-family
both in article list page (frontpage) and content page of my blog as follows:
font-family: apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, PingFang SC, Microsoft YaHei, sans-serif
Hope the further version of Mirror can support Chinese characters better. Thanks!
Best,
Donglei
作者你好,我在自己账户域名下(daotin.github.io),放入那三个文件,index.html代码如下:
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title> 前端队长Daotin </title>
</head>
<body>
<div id="root"></div>
<script src="./index.0fbaafc4.js"></script>
<script>
window.config = {
organization: false, // 默认是 false,如果你的项目是属于 GitHub 组织 的,请设置为 true
order: 'CREATED_AT', // 文章排序,以 创建时间 或者 更新时间,可选值 'UPDATED_AT','CREATED_AT'
title: 'Daotin', // 博客标题
user: 'Daotin', // GitHub 用户名,必须
repository: 'fe-blog', // GitHub 项目名,指定文章内容来源 issues,必须
authors: 'Daotin', // 博客作者,以 ',' 分割,GitHub 用户名默认包含在内
ignores: '', // 文章忽略的 issues ID
host: '', // 博客的主域名,不填自动获取,请注意这个值会影响 hash 的值
hash: 'ghp_gfFSku4ZU#H$VARm$g^IXAXsSmZmo!G$DUPZGFvdGldGh1Yi5pby9mZS1ibG9nLw==', // 必须
perpage: 8, // 分页
}
</script>
</body>
</html>
repository是我另一个仓库的名称。
hash的获取是:
window.encrypt('<Token>', 'daotin.github.io')
提交到gh-pages下后,打开网站 https://daotin.github.io/
报错:
是我使用方式有问题吗?
Mirror 更新后好像每次都要重新 init 然后覆盖配置,有点繁琐哈.
你好,打扰了,我有个问题想请教下。
我在第一次部署后请求首页提示我401错误:
我查了下401是Unauthorized
。
我想问下这个错误你有遇到过吗?
我检查了下我的 token没有问题,配置也是参照实例配置的。
我的repo:shui/leetcode,首页:https://leetcode.adu.im/
多谢!
issue删除不可,但是Mirror是否可以过滤掉带有某些特征的issue,以达到删除
的目的。
比如列表中不显示带有deleted
标签的issue。
Mirror目前是否有这种功能?
因为我的文章内容不长,没必要二次点击。
配置中的authors在index.html中会被不加双引号地使用,导致界面一直处于Loading状态。
实测需要加上双引号之后才能正常访问(我这边是这个情况)
原配置:
"authors":1715173329
实际应是
"authors":"1715173329"
建立一个 token 后,很快发现 token 被删除,Github 发来了安全警示邮件:
We noticed that a valid OAuth access token of yours was committed to a public GitHub repository. Publicly disclosing a valid access token would allow other people to interact with GitHub on your behalf, potentially altering data, your contact information, and billing data.
As a precautionary measure, we have revoked the OAuth token. A new token will need to be generated in order to continue using OAuth to authenticate to GitHub. Here are a couple of steps you can do to ensure your account security has not been compromised:
1111111
你好,感谢你的贡献,你的博客系统十分优雅,我一直有在使用。但是期间遇到一个疑问,文章列表页面的时间戳貌似是根据 issue 的更新时间来就决定的,请问能不能改成 issue 的创建时间呢?因为我有时候回 review 自己的 blog issue ,可能会在同一天对许多博客都做了更改,这样在文章列表上的时间都变成同一天了,窃以为这样有点不雅观。
感谢你阅读我的 issue 。
首先必须赞,这是我看过的众多issue blog中审美最好的一个,使用体验也很流畅。
要说改进的话
这些是博文读者会面临的几个痛点。
作为开发者的话,希望文档再丰富一些,不管是私人定制还是参与开发都会方便很多。
index.html:
// Define
var config = {
user: 'shnode', // GitHub Username
repo: 'trashy-notes', // GitHub Repo
token: '2322a49be80'+'2d09bd95e3a1e3cd58776b31c584c', // Github access_token
info: 'Be cool, but also be warm', // About Yourself
per_page: 9, // Per Page Posts Number
behance: '', // Behance URL
dribbble: '', // Dribbble URL
instagram: '' // Instagram URL
}
issue repo: link
with api link returns right response: https://api.github.com/repos/shnode/trashy-notes/issues
but there is no posts when access Mirror
.
what happened...
现在源码中用的是Observer, 创建实例的时候传入了mirror这个对象, 然后还有个watch监听方法, 如果换成Proxy实现的话, 是不是应该是这样:
let handler = {
// Observer constructor()
get(){
}
}
new Proxy(mirror, handler)
handler的get()方法是否相当于Observer的constructor()方法, 但是Proxy怎么实现像Observer的watch()方法呢?因为在程序入口处用了Observer的watch方法.
observer.watch({
user: '',
issues: '',
issue: '',
comments: ''
})
大佬有时间的话指点一下, 谢谢!!!
4.0版本的几个问题:
1、Label 只在首页显示而在blog单页中不显示?
2、为什么我的顶部主页小图标的链接重复显示我的主页地址? worz.net/worz.net 这样。
3、有可能调整字体大小么?现在的正文字体太小了,还是说抓取 issues 内容只能是缺省的大小?
Check it out at: http://ibrahim-islam.github.io
Issues request gets through and are returned successfully.
No js errors in console either.
i found in source code, many class
has get xx()
, i'm not undertand What time use get xx()
, and what time not use get xx()
? the both difference?
example:
class User {
constructor(selector) {
this.container = $(selector)
this.user = null
}
get email() {
const email = this.user.email || this.user.organizationBillingEmail
return email ? `<a target="_blank" href="mailto:${email}">${emailIcon}</a>` : ''
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.