my-blog icon indicating copy to clipboard operation
my-blog copied to clipboard

[Vssue]react-demo

Open shenghy opened this issue 5 years ago • 48 comments

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

shenghy avatar Sep 19 '19 09:09 shenghy

前排打卡,加油!

ZTH520 avatar Sep 19 '19 10:09 ZTH520

up!

Linbubin avatar Sep 20 '19 02:09 Linbubin

后台用node呗 技术胖大佬

zl612 avatar Sep 20 '19 05:09 zl612

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

wangjili2 avatar Sep 20 '19 07:09 wangjili2

希望后端使用koa2这个框架

vearvip avatar Sep 20 '19 09:09 vearvip

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

ETTTTT avatar Sep 21 '19 02:09 ETTTTT

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

ETTTTT avatar Sep 21 '19 02:09 ETTTTT

正好想写一个博客

li7hai26 avatar Sep 22 '19 13:09 li7hai26

加油!

cnrnews avatar Sep 26 '19 06:09 cnrnews

@zl612

后台用node呗 技术胖大佬

11

MECN avatar Sep 27 '19 07:09 MECN

胖哥帅爆了

davidhoo666 avatar Sep 27 '19 10:09 davidhoo666

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

hefeng6500 avatar Sep 28 '19 02:09 hefeng6500

@zl612

后台用node呗 技术胖大佬

node +1

Jairwin-L avatar Oct 01 '19 02:10 Jairwin-L

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

wuchunwang564 avatar Oct 05 '19 15:10 wuchunwang564

加油加油!

1748839240 avatar Oct 07 '19 08:10 1748839240

项目中如何配置less或sass

Aubrey-forget avatar Oct 08 '19 08:10 Aubrey-forget

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

alvin0216 avatar Oct 09 '19 03:10 alvin0216

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

lzhui avatar Oct 10 '19 03:10 lzhui

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

lzhui avatar Oct 10 '19 03:10 lzhui

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

lengband avatar Oct 14 '19 04:10 lengband

大佬 数据库为啥不用MongoDB啊

13164596713 avatar Oct 17 '19 01:10 13164596713

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

lin5164 avatar Oct 18 '19 01:10 lin5164

优秀

HaoyunGroup avatar Oct 18 '19 03:10 HaoyunGroup

加油 养肥了再看

syc0994 avatar Oct 21 '19 02:10 syc0994

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

forget1 avatar Oct 21 '19 10:10 forget1

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

cwf5223216 avatar Oct 22 '19 07:10 cwf5223216

@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',
  };

就好了

forget1 avatar Oct 22 '19 08:10 forget1

@forget1 已经解决了 非常感谢

cwf5223216 avatar Oct 23 '19 01:10 cwf5223216

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

Tobee4Lin avatar Oct 24 '19 03:10 Tobee4Lin

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

GitRepositories avatar Oct 25 '19 01:10 GitRepositories

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

zmj0920 avatar Oct 25 '19 02:10 zmj0920

可以

xiaohuwei avatar Oct 27 '19 08:10 xiaohuwei

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

cwf5223216 avatar Oct 28 '19 01:10 cwf5223216

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

a524313390 avatar Oct 28 '19 07:10 a524313390

请问有源码吗?

MaybeQHL avatar Nov 01 '19 07:11 MaybeQHL

支持

zhouyingkai1 avatar Nov 07 '19 07:11 zhouyingkai1

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

hanwensheng avatar Nov 07 '19 07:11 hanwensheng

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

grapetree avatar Nov 08 '19 10:11 grapetree

@hanwensheng

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

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

forget1 avatar Nov 09 '19 06:11 forget1

666

manpenghui avatar Nov 09 '19 07:11 manpenghui

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

c37csq avatar Nov 12 '19 06:11 c37csq

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

c37csq avatar Nov 13 '19 01:11 c37csq

我是怎么登陆的?

wan-chao avatar Nov 15 '19 07:11 wan-chao

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

lihanyu-zero avatar Nov 18 '19 10:11 lihanyu-zero

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

wuyiyin avatar Nov 26 '19 03:11 wuyiyin

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!

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

forget1 avatar Nov 26 '19 12:11 forget1

6666666

Cribug8080 avatar Nov 27 '19 01:11 Cribug8080

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

GYxiaOZ avatar Dec 03 '19 01:12 GYxiaOZ