You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@age.apache.org by hb...@apache.org on 2022/08/25 01:51:49 UTC
[age-website] branch new-web updated: change url address (#65)
This is an automated email from the ASF dual-hosted git repository.
hbshin pushed a commit to branch new-web
in repository https://gitbox.apache.org/repos/asf/age-website.git
The following commit(s) were added to refs/heads/new-web by this push:
new 9799f9c change url address (#65)
9799f9c is described below
commit 9799f9c267a7dbfb875c2c91b96f51cc35ff59dd
Author: keikang0905 <59...@users.noreply.github.com>
AuthorDate: Thu Aug 25 10:51:45 2022 +0900
change url address (#65)
* Apache AGE Manual link 추가
* Apply google analytics, edit the number of output lines in the project list, add the projects button
* SSL적용을 위한 URL 변경, yutubu link 변경
Co-authored-by: keikang0905 <km...@naver.com>
Co-authored-by: Hanbyeol Shin / David Shin / 신한별 <76...@users.noreply.github.com>
---
src/api/ageStateManager.js | 2 +-
src/api/projectStateManager.js | 8 +++++---
src/api/redditStateManager.js | 2 +-
src/components/ProjectList.js | 9 ++++++---
src/templates/index-page.js | 3 ++-
5 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/src/api/ageStateManager.js b/src/api/ageStateManager.js
index 95b8439..3b98eff 100644
--- a/src/api/ageStateManager.js
+++ b/src/api/ageStateManager.js
@@ -4,7 +4,7 @@ async function getAgeInfoSetter(stateSetter) {
axios.defaults.withCredentials = true;
axios.defaults.headers['accept'] = 'application/json';
return await axios
- .get('http://localhost:3999/api/v1/github/star-and-member?owner=apache&repo=age', {
+ .get('https://apacheage.shop:3999/api/v1/github/star-and-member?owner=apache&repo=age', {
owner: 'apache',
repos: 'age',
})
diff --git a/src/api/projectStateManager.js b/src/api/projectStateManager.js
index 67c165e..1a6e57d 100644
--- a/src/api/projectStateManager.js
+++ b/src/api/projectStateManager.js
@@ -4,7 +4,7 @@ async function getProjectListStateSetter(setProjectList, setPageInfo) {
axios.defaults.withCredentials = true;
axios.defaults.headers['accept'] = 'application/json';
return await axios
- .get('http://localhost:3999/api/v1/projects/list')
+ .get('https://apacheage.shop:3999/api/v1/projects/list')
.then((res) => {
const result = { ...res.data };
setProjectList(result.list);
@@ -27,9 +27,11 @@ async function addProjectListStateSetter(
axios.defaults.withCredentials = true;
axios.defaults.headers['accept'] = 'application/json';
return await axios
- .get(`http://localhost:3999/api/v1/projects/list?endCursor=${endCursor}`)
+ .get(`https://apacheage.shop:3999/api/v1/projects/list?endCursor=${endCursor}`)
.then((res) => {
const result = { ...res.data };
+console.log("projectStateManager result")
+console.log("res.data")
setProjectList([...projects, ...result.list]);
delete result.list;
setPageInfo({ ...result });
@@ -45,7 +47,7 @@ async function getProjectDetailStateSetter(setProjects) {
axios.defaults.withCredentials = true;
axios.defaults.headers['accept'] = 'application/json';
return await axios
- .get('http://localhost:3999/api/v1/projects/detail')
+ .get('https://apacheage.shop:3999/api/v1/projects/detail')
.then((res) => {
setProjects(res.data);
return true;
diff --git a/src/api/redditStateManager.js b/src/api/redditStateManager.js
index 046f006..4ad35f5 100644
--- a/src/api/redditStateManager.js
+++ b/src/api/redditStateManager.js
@@ -4,7 +4,7 @@ async function getRedditDataSetter(stateSetter) {
axios.defaults.withCredentials = true;
axios.defaults.headers['accept'] = 'application/json';
return await axios
- .get('http://localhost:3999/api/v1/reddit/rss')
+ .get('https://apacheage.shop:3999/api/v1/reddit/rss')
.then((res) => {
stateSetter(res.data.list);
})
diff --git a/src/components/ProjectList.js b/src/components/ProjectList.js
index 74b99b4..06b02ae 100644
--- a/src/components/ProjectList.js
+++ b/src/components/ProjectList.js
@@ -34,11 +34,13 @@ const ProjectList = ({ mode }) => {
return (
<>
+
{isLoading ? (
<p style={{ textAlign: 'center' }}>
<Spin></Spin>
</p>
) : (
+
<PerfectScrollbar>
<ul className={styles.cardRoot}>
{projects?.map((item) => (
@@ -48,6 +50,7 @@ const ProjectList = ({ mode }) => {
))}
</ul>
</PerfectScrollbar>
+
)}
{isAddLoading ? (
<p style={{ textAlign: 'center' }}>
@@ -57,7 +60,7 @@ const ProjectList = ({ mode }) => {
<></>
)}
<ul className={styles.buttonGroup}>
- <p style={{ textAlign: 'center' }}>
+ <p style={{ textAlign: 'center' }}>
{(() => {
if (pageInfo?.hasNextPage && projects.length < 16)
return (
@@ -73,8 +76,8 @@ const ProjectList = ({ mode }) => {
<button
className={styles.MoreBtn}
onClick={() =>
- (window.location.href =
- 'https://github.com/shinhanbyeol?tab=projects&type=new')
+ (window.location.href =
+ 'https://github.com/shinhanbyeol?tab=projects&type=new')
}
>
Projects
diff --git a/src/templates/index-page.js b/src/templates/index-page.js
index 949594b..7f2ff06 100644
--- a/src/templates/index-page.js
+++ b/src/templates/index-page.js
@@ -72,7 +72,8 @@ export const IndexPageTemplate = ({
<iframe
width="100%"
height="720"
- src="https://www.youtube.com/embed/qC_3F4Gaipk"
+ //src="https://www.youtube.com/embed/qC_3F4Gaipk"
+ src="https://www.youtube.com/embed/MAjVnPvWVhg"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"