shenghy / my-blog

我的博客系统
22 stars 8 forks source link

[Vssue]react-demo #45

Open shenghy opened 5 years ago

shenghy commented 5 years ago

https://jspang.com/posts/2019/09/19/react-demo.html

ZTH520 commented 5 years ago

前排打卡,加油!

Linbubin commented 5 years ago

up!

zl612 commented 5 years ago

后台用node呗 技术胖大佬

wangjili2 commented 5 years ago

从react.js到现在的实战,学到了很多,谢谢!(学生党一枚,目前自学前端。)希望博主减肥成功...

vearvip commented 5 years ago

希望后端使用koa2这个框架

ETTTTT commented 5 years ago

大佬,一个项目写完之后有没有必要做到单元测试呀,写这个博客的时候,要不要把单元测试也带上呢

ETTTTT commented 5 years ago

支持,希望可以跟着大佬这一套视频,我也写一个自己的博客出来,期待期待

li7hai26 commented 5 years ago

正好想写一个博客

cnrnews commented 5 years ago

加油!

MECN commented 5 years ago

@zl612

后台用node呗 技术胖大佬

11

davidhoo666 commented 5 years ago

胖哥帅爆了

hefeng6500 commented 5 years ago

胖哥,想请教下右侧目录模块的实现

Jairwin-L commented 5 years ago

@zl612

后台用node呗 技术胖大佬

node +1

wuchunwang564 commented 5 years ago

p08 list.css是空的么,只用antd样式

1748839240 commented 5 years ago

加油加油!

Aubrey-forget commented 5 years ago

项目中如何配置less或sass

alvin0216 commented 5 years ago

膜拜大佬~~~ 我近期也撸了个 react hooks + koa2 + mysql spa 博客~ 欢迎观光交流 地址 https://guodada.fun 源码 https://github.com/gershonv/react-blog 看完你的教程我也用 next.js 去重写啦~

lzhui commented 5 years ago

大佬,什么时候开讲react natvie呀。

lzhui commented 5 years ago

大佬,最近不知道为什么访问你的网站很卡,特别是鼠标滚动下来,时不时就有鼠标变成圈圈一直转,页面卡住的感觉。

lengband commented 5 years ago

希望大佬node完成后台的部分啊,毕竟这里大部分的小伙伴都是前端开发,PHP确实不会啊。

13164596713 commented 5 years ago

大佬 数据库为啥不用MongoDB啊

lin5164 commented 5 years ago

胖哥车速慢点,,上班空余时间看的我心惊胆战面红耳赤的,生怕旁边小姐姐看见

HaoyunGroup commented 5 years ago

优秀

syc0994 commented 5 years ago

加油 养肥了再看

forget1 commented 5 years ago

时间戳这个位置,这个的具体的值是怎么获取的,我用getTime()方法获得的值和这个不一样,存储不到数据库中,谢谢

cwf5223216 commented 5 years ago

p18. 我请求文章详情页后台接口时 next.js前台控制台提示cors 怎么解决呀

forget1 commented 5 years ago

@cwf5223216

p18. 我请求文章详情页后台接口时 next.js前台控制台提示cors 怎么解决呀

安装一下egg-cors

然后在plugin.js里添加

exports.cors = {
  enable: true,
  package: 'egg-cors',
};

config.defaults.js里添加

config.security = {
    csrf: {
      enable: false,
    },
    domainWhiteList: [ '*' ],
  };
  config.cors = {
    origin: '*',
    allowMethods: 'GET,HEAD,PUT,POST,DELETE,PATCH,OPTIONS',
  };

就好了

cwf5223216 commented 5 years ago

@forget1 已经解决了 非常感谢

Tobee4Lin commented 5 years ago
  1. p20节中,胖哥写错了,应该是安装highlight.js包,而不是highlight,提醒下各位~
  2. p20节中,需要在detailed-content类中加入以下代码才能看到效果:
    <div className="detailed-content" >
    <div dangerouslySetInnerHTML = {{__html: html}}></div>
    </div>
GitRepositories commented 5 years ago

胖哥,请问一下,Ant CSS样式按需引用,查看了一下 ant的css文件,为啥有650k的大小!

zmj0920 commented 5 years ago

那个胖哥文档有点错误那个是安装 yarn add highlightjs 引入 import hljs from 'highlightjs'; import 'highlightjs/styles/monokai-sublime.css';

xiaohuwei commented 5 years ago

可以

cwf5223216 commented 5 years ago

请教一下,大佬! blog首页如果要加上文章分页功能要如何写呢 是要在后台计算好传给前台,还是在前台进行计算和展示

a524313390 commented 5 years ago

胖哥,搞个QQ快速登录+评论

MaybeQHL commented 5 years ago

请问有源码吗?

zhouyingkai1 commented 5 years ago

支持

hanwensheng commented 5 years ago

p20 高亮没有显示 代码都没有问题 为啥呢

grapetree commented 5 years ago

胖哥,什么时候出d3.js教程啊

forget1 commented 5 years ago

@hanwensheng

p20 高亮没有显示 代码都没有问题 为啥呢

是不是引入的css样式有问题

manpenghui commented 5 years ago
666
c37csq commented 5 years ago

胖哥,这种服务端渲染的项目怎么部署到阿里云服务器上,求解

c37csq commented 5 years ago

胖哥项目做完后能教一下怎么打包部署到阿里云服务器上吗

wan-chao commented 5 years ago

我是怎么登陆的?

lihanyu-zero commented 5 years ago

顶!支持!有希望了!期待胖哥新增文章的教程!

wuyiyin commented 4 years ago

胖哥,这个项目过年前能做完吗?好期待自己跟着敲完顺便学完一个完整的项目。(胖哥看见能回复一下吗)

forget1 commented 4 years ago
There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.

The react-scripts package provided by Create React App requires a dependency:

  "webpack": "4.41.0"

Don't try to install it manually: your package manager does it automatically.
However, a different version of webpack was detected higher up in the tree:

  D:\Resource\project\react\blog\node_modules\webpack (version: 4.39.0)

Manually installing incompatible versions is known to cause hard-to-debug issues.

If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That will permanently disable this message but you might encounter other issues.

To fix the dependency tree, try following the steps below in the exact order:

  1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder.
  2. Delete node_modules in your project folder.
  3. Remove "webpack" from dependencies and/or devDependencies in the package.json file in your project folder.
  4. Run npm install or yarn, depending on the package manager you use.

In most cases, this should be enough to fix the problem.
If this has not helped, there are a few other things you can try:

  5. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead.
     This may help because npm has known issues with package hoisting which may get resolved in future versions.

  6. Check if D:\Resource\project\react\blog\node_modules\webpack is outside your project directory.
     For example, you might have accidentally installed something in your home folder.

  7. Try running npm ls webpack in your project folder.
     This will tell you which other package (apart from the expected react-scripts) installed webpack.

If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That would permanently disable this preflight check in case you want to proceed anyway.

P.S. We know this message is long but please read the steps above :-) We hope you find them helpful!

有遇到这个问题的吗?这种应该怎么解决..谢谢

Cribug8080 commented 4 years ago

6666666

GYxiaOZ commented 4 years ago

建议胖哥点击右边目录后的滚动效果改进一下,感觉每次滚动要滚好久,用着怪不舒服的