Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CoCo_Code_Op2
next.js
提交
6c9fa866
N
next.js
项目概览
CoCo_Code_Op2
/
next.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
next.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6c9fa866
编写于
10月 11, 2019
作者:
L
Luis Alvarez D
提交者:
Tim Neutkens
10月 11, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated multiple examples to use /public (#9033)
上级
c941b612
变更
20
隐藏空白更改
内联
并排
Showing
20 changed file
with
8 addition
and
13 deletion
+8
-13
examples/blog-starter/components/head.js
examples/blog-starter/components/head.js
+0
-1
examples/blog-starter/posts/rss-feed.js
examples/blog-starter/posts/rss-feed.js
+1
-1
examples/blog-starter/public/favicon.ico
examples/blog-starter/public/favicon.ico
+0
-0
examples/blog-starter/public/static/_jolvera.png
examples/blog-starter/public/static/_jolvera.png
+0
-0
examples/blog-starter/public/static/next.svg
examples/blog-starter/public/static/next.svg
+0
-0
examples/blog-starter/public/static/site-feature.png
examples/blog-starter/public/static/site-feature.png
+0
-0
examples/with-algolia-react-instantsearch/components/head.js
examples/with-algolia-react-instantsearch/components/head.js
+0
-1
examples/with-algolia-react-instantsearch/public/favicon.ico
examples/with-algolia-react-instantsearch/public/favicon.ico
+0
-0
examples/with-algolia-react-instantsearch/public/static/instantsearch.css
...golia-react-instantsearch/public/static/instantsearch.css
+0
-0
examples/with-asset-imports/README.md
examples/with-asset-imports/README.md
+2
-2
examples/with-asset-imports/pages/index.js
examples/with-asset-imports/pages/index.js
+1
-1
examples/with-asset-imports/public/logo.png
examples/with-asset-imports/public/logo.png
+0
-0
examples/with-noscript/public/static/img/angular.jpg
examples/with-noscript/public/static/img/angular.jpg
+0
-0
examples/with-noscript/public/static/img/nextjs.png
examples/with-noscript/public/static/img/nextjs.png
+0
-0
examples/with-noscript/public/static/img/reactjs.png
examples/with-noscript/public/static/img/reactjs.png
+0
-0
examples/with-noscript/public/static/img/vuejs.png
examples/with-noscript/public/static/img/vuejs.png
+0
-0
examples/with-react-md/README.md
examples/with-react-md/README.md
+2
-2
examples/with-react-md/pages/index.js
examples/with-react-md/pages/index.js
+1
-4
examples/with-react-md/public/react-md.light_blue-yellow.min.css
...s/with-react-md/public/react-md.light_blue-yellow.min.css
+1
-0
examples/with-react-md/static/react-md.light_blue-yellow.min.css
...s/with-react-md/static/react-md.light_blue-yellow.min.css
+0
-1
未找到文件。
examples/blog-starter/components/head.js
浏览文件 @
6c9fa866
...
...
@@ -18,7 +18,6 @@ const Head = props => (
content
=
{
props
.
description
||
defaultDescription
}
/
>
<
meta
name
=
'
viewport
'
content
=
'
width=device-width, initial-scale=1
'
/>
<
link
rel
=
'
icon
'
href
=
'
/static/favicon.ico
'
/>
<
link
rel
=
'
alternate
'
...
...
examples/blog-starter/posts/rss-feed.js
浏览文件 @
6c9fa866
...
...
@@ -11,7 +11,7 @@ const feed = {
feed_url
:
`
${
siteMeta
.
siteUrl
}
/feed.json`
,
description
:
siteMeta
.
description
,
icon
:
`
${
siteMeta
.
siteUrl
}
/static/apple-touch-icon-152x152.png`
,
favicon
:
`
${
siteMeta
.
siteUrl
}
/
static/
favicon.ico`
,
favicon
:
`
${
siteMeta
.
siteUrl
}
/favicon.ico`
,
author
:
{
name
:
siteMeta
.
author
,
url
:
siteMeta
.
siteUrl
,
...
...
examples/blog-starter/
stat
ic/favicon.ico
→
examples/blog-starter/
publ
ic/favicon.ico
浏览文件 @
6c9fa866
文件已移动
examples/blog-starter/static/_jolvera.png
→
examples/blog-starter/
public/
static/_jolvera.png
浏览文件 @
6c9fa866
文件已移动
examples/blog-starter/static/next.svg
→
examples/blog-starter/
public/
static/next.svg
浏览文件 @
6c9fa866
文件已移动
examples/blog-starter/static/site-feature.png
→
examples/blog-starter/
public/
static/site-feature.png
浏览文件 @
6c9fa866
文件已移动
examples/with-algolia-react-instantsearch/components/head.js
浏览文件 @
6c9fa866
...
...
@@ -18,7 +18,6 @@ export const Head = props => (
<
link
rel
=
'
icon
'
sizes
=
'
192x192
'
href
=
'
/static/touch-icon.png
'
/>
<
link
rel
=
'
apple-touch-icon
'
href
=
'
/static/touch-icon.png
'
/>
<
link
rel
=
'
mask-icon
'
href
=
'
/static/favicon-mask.svg
'
color
=
'
#49B882
'
/>
<
link
rel
=
'
icon
'
href
=
'
/static/favicon.ico
'
/>
<
meta
property
=
'
og:url
'
content
=
{
props
.
url
||
defaultOGURL
}
/
>
<
meta
property
=
'
og:title
'
content
=
{
props
.
title
||
''
}
/
>
<
meta
...
...
examples/with-algolia-react-instantsearch/
stat
ic/favicon.ico
→
examples/with-algolia-react-instantsearch/
publ
ic/favicon.ico
浏览文件 @
6c9fa866
文件已移动
examples/with-algolia-react-instantsearch/static/instantsearch.css
→
examples/with-algolia-react-instantsearch/
public/
static/instantsearch.css
浏览文件 @
6c9fa866
文件已移动
examples/with-asset-imports/README.md
浏览文件 @
6c9fa866
...
...
@@ -39,7 +39,7 @@ now
## The idea behind the example
This example shows how to enable the imports of assets (images, videos, etc.) and get a URL pointing to
`/
stat
ic`
.
This example shows how to enable the imports of assets (images, videos, etc.) and get a URL pointing to
`/
publ
ic`
.
This is also configurable to point to a CDN changing the
`baseUri`
to the CDN domain, something similar to this:
...
...
@@ -47,7 +47,7 @@ This is also configurable to point to a CDN changing the `baseUri` to the CDN do
[
"transform-assets-import-to-string"
,
{
"baseDir"
:
"/
static
"
,
"baseDir"
:
"/"
,
"baseUri"
:
"https://cdn.domain.com"
}
]
...
...
examples/with-asset-imports/pages/index.js
浏览文件 @
6c9fa866
import
avatar
from
'
../
stat
ic/logo.png
'
import
avatar
from
'
../
publ
ic/logo.png
'
export
default
()
=>
<
img
src
=
{
avatar
}
/
>
examples/with-asset-imports/
stat
ic/logo.png
→
examples/with-asset-imports/
publ
ic/logo.png
浏览文件 @
6c9fa866
文件已移动
examples/with-noscript/static/img/angular.jpg
→
examples/with-noscript/
public/
static/img/angular.jpg
浏览文件 @
6c9fa866
文件已移动
examples/with-noscript/static/img/nextjs.png
→
examples/with-noscript/
public/
static/img/nextjs.png
浏览文件 @
6c9fa866
文件已移动
examples/with-noscript/static/img/reactjs.png
→
examples/with-noscript/
public/
static/img/reactjs.png
浏览文件 @
6c9fa866
文件已移动
examples/with-noscript/static/img/vuejs.png
→
examples/with-noscript/
public/
static/img/vuejs.png
浏览文件 @
6c9fa866
文件已移动
examples/with-react-md/README.md
浏览文件 @
6c9fa866
...
...
@@ -27,11 +27,11 @@ Install it and run:
```
bash
npm
install
ln
-f
-s
../node_modules/react-md/dist/react-md.light_blue-yellow.min.css
stat
ic/react-md.light_blue-yellow.min.css
ln
-f
-s
../node_modules/react-md/dist/react-md.light_blue-yellow.min.css
publ
ic/react-md.light_blue-yellow.min.css
npm run dev
# or
yarn
ln
-f
-s
../node_modules/react-md/dist/react-md.light_blue-yellow.min.css
stat
ic/react-md.light_blue-yellow.min.css
ln
-f
-s
../node_modules/react-md/dist/react-md.light_blue-yellow.min.css
publ
ic/react-md.light_blue-yellow.min.css
yarn dev
```
...
...
examples/with-react-md/pages/index.js
浏览文件 @
6c9fa866
...
...
@@ -73,10 +73,7 @@ export default () => {
return
(
<
div
>
<
Head
>
<
link
rel
=
'
stylesheet
'
href
=
'
/static/react-md.light_blue-yellow.min.css
'
/>
<
link
rel
=
'
stylesheet
'
href
=
'
/react-md.light_blue-yellow.min.css
'
/>
<
link
rel
=
'
stylesheet
'
href
=
'
https://fonts.googleapis.com/css?family=Roboto:300,400,500
'
...
...
examples/with-react-md/public/react-md.light_blue-yellow.min.css
0 → 100644
浏览文件 @
6c9fa866
../
node_modules
/
react-md
/
dist
/
react-md
.light_blue-yellow.min.css
\ No newline at end of file
examples/with-react-md/static/react-md.light_blue-yellow.min.css
已删除
120000 → 0
浏览文件 @
c941b612
../
node_modules
/
react-md
/
dist
/
react-md
.light_blue-yellow.min.css
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录