From 33009e5f55ebf4e6333cf13868e6aafdec8d0d19 Mon Sep 17 00:00:00 2001 From: Qingfeng Huang Date: Mon, 3 Mar 2025 22:08:33 +0000 Subject: [PATCH 01/10] Add zh(Han) translation for Donate page --- src/content/text-detail/zh-Hans/donate.mdx | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/content/text-detail/zh-Hans/donate.mdx diff --git a/src/content/text-detail/zh-Hans/donate.mdx b/src/content/text-detail/zh-Hans/donate.mdx new file mode 100644 index 0000000000..b9f570dd71 --- /dev/null +++ b/src/content/text-detail/zh-Hans/donate.mdx @@ -0,0 +1,34 @@ +--- +title: "捐赠" +--- +import DonorBoxWidget from "../../../components/DonorBoxWidget/index.astro"; +import Image from "../../../components/Image/index.astro"; +import featuredDonate from "../images/contributor-conf-2019-17.webp"; +import donate1 from "../images/ccfest2018.webp"; +import donate2 from "../images/workshops-chile.webp"; +import donate3 from "../images/contributor-conf-2015.webp"; +import donate4 from "../images/p5for50plus.webp"; +import donate5 from "../images/tunapanda.webp"; +import donate6 from "../images/donate-6.jpeg"; + +参与者们围坐在办公桌前,使用着笔记本电脑,同时观看着屏幕上的代码。 + +我们需要您的帮助!p5.js 是一款免费且开源的软件。您可以通过向支持 p5.js 的组织 Processing Foundation 捐款来支持这一项目的发展。您的捐款将直接助力 p5.js 的软件开发、制作范例代码及教程之类的教育资源,以及奖学金和社群活动。所有这些努力都将让我们的社区变得更加开放和包容! + + + +Processing Foundation 在原本的 Processing 软件多过十年的工作后成立于 2012 年。Processing Foundation 的原旨是推动艺术领域的软件学习,促进技术相关领域的艺术教育,并支持那些可以让这些领域充满活力、自由和创新的多元社区。我们致力于帮助来自不同背景的人们学习编程,并通过代码进行创意表达,尤其是那些可能缺乏获取相关工具和资源的人群。同时,我们也相信,一些最具变革性的未来发展和创新技术,正诞生于那些被主流科技边缘化的社群。我们希望通过提供时间、空间和有效资源,从而帮助这些群体在科技领域来持续实现自主发展。 + +
+ 在 p5.js 工作坊中,参与者围坐在桌前,使用笔记本电脑观察屏幕上的代码。 + 由Aarón Montoya-Moraga在智利主持的 p5.js 工作坊,大家展示了参与的项目 + 参与者们在绿色的草坪上跳跃、微笑,并欢快的手舞足蹈着。 + Inhwa Yeom 为 50 岁以上的人群教授 p5.js的编程技能 + 学生们一边学习p5.js编程语言,一边翻阅着范例代码书籍。 + 参与者们围坐在桌前,聚精会神地在电脑上使用p5.js代码编辑器。 +
\ No newline at end of file From fed41a8ffe57c62f390d6a9116965f9a613854fb Mon Sep 17 00:00:00 2001 From: Qingfeng Huang Date: Wed, 12 Mar 2025 11:08:43 +0000 Subject: [PATCH 02/10] added zh(han) translation code of conduct file --- .../text-detail/zh-Hans/code-of-conduct.mdx | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/content/text-detail/zh-Hans/code-of-conduct.mdx diff --git a/src/content/text-detail/zh-Hans/code-of-conduct.mdx b/src/content/text-detail/zh-Hans/code-of-conduct.mdx new file mode 100644 index 0000000000..a3f3847d57 --- /dev/null +++ b/src/content/text-detail/zh-Hans/code-of-conduct.mdx @@ -0,0 +1,23 @@ +--- +title: "行为准则" +--- + +- **请注意您的言辞。** 任何以下行为都是不可接受的: + + - 发表涉及性别认同和表达、性取向、种族、民族、语言、神经类型、体型、能力、社会阶层、宗教、文化、亚文化、政治观点、年龄、技能水平、职业或背景的冒犯性言论 + - 暴力威胁 + - 蓄意恐吓 + - 发布没有上下文说明且未提前给予适当警告的露骨色情或暴力内容 + - 不受欢迎的性关注 + - 跟踪或尾随 + - 以及任何其他形式的骚扰行为 + + 请谨慎判断您的言行。如果某些内容可能会让社区中的成员感到不适,请不要发布。 + +- **保持尊重。** 不赞同并不是攻击社区其他成员思想或观点的理由。即使存在意见分歧,也要以耐心和关怀的态度对待每一个情况。 +- **为他人着想。** 想想您的行为或贡献将如何影响社区中的其他成员。 +- **保持开放。** 接纳新成员和新想法。我们的社区在不断发展,我们欢迎积极的改变。 + +如果您认为有人违反了行为准则,我们希望您通过电子邮件 [hello@p5js.org](mailto:hello@p5js.org) 向我们举报。请在邮件中写明您的姓名和对事件的描述,我们会将尽快处理和向您回复。 + +有时候,违反行为准则的参与者并没有意识到自己的行为是有害的。坦诚的沟通可以帮助澄清问题,使大家继续前进。然而,如果该参与者继续这种行为,p5.js 团队可能会采取任何适当的措施,其中包括将其逐出所有 p5.js 社区空间,并向 p5.js 社区中的成员或公众通报该参与者的不当行为。 \ No newline at end of file From 0ae0b3d06cd515266491f60da0bb2cc1fb7508d3 Mon Sep 17 00:00:00 2001 From: Qingfeng Huang <92257843+Darrenhqf@users.noreply.github.com> Date: Fri, 21 Mar 2025 11:00:46 +0000 Subject: [PATCH 03/10] Update donate.mdx Minor change for the word accuracy --- src/content/text-detail/zh-Hans/donate.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content/text-detail/zh-Hans/donate.mdx b/src/content/text-detail/zh-Hans/donate.mdx index b9f570dd71..0abeb7f0e4 100644 --- a/src/content/text-detail/zh-Hans/donate.mdx +++ b/src/content/text-detail/zh-Hans/donate.mdx @@ -22,7 +22,7 @@ import donate6 from "../images/donate-6.jpeg"; -Processing Foundation 在原本的 Processing 软件多过十年的工作后成立于 2012 年。Processing Foundation 的原旨是推动艺术领域的软件学习,促进技术相关领域的艺术教育,并支持那些可以让这些领域充满活力、自由和创新的多元社区。我们致力于帮助来自不同背景的人们学习编程,并通过代码进行创意表达,尤其是那些可能缺乏获取相关工具和资源的人群。同时,我们也相信,一些最具变革性的未来发展和创新技术,正诞生于那些被主流科技边缘化的社群。我们希望通过提供时间、空间和有效资源,从而帮助这些群体在科技领域来持续实现自主发展。 +在原始的 Processing 软件研发了十多年后,Processing 基金会于 2012 年成立。Processing Foundation 的使命是推动艺术领域的软件学习,促进技术相关领域的艺术教育,并支持那些可以让这些领域充满活力、自由和创新的多元社区。我们致力于帮助不同背景的人们学习编程,并通过代码进行创意表达,尤其是那些可能缺乏获取相关工具和资源的人群。同时,我们也相信,一些最具变革性的未来发展和创新技术,正诞生于那些被主流科技边缘化的社群。我们希望通过提供时间、空间和有效资源,从而帮助这些群体在科技领域来持续实现自主发展。
在 p5.js 工作坊中,参与者围坐在桌前,使用笔记本电脑观察屏幕上的代码。 @@ -30,5 +30,5 @@ Processing Foundation 在原本的 Processing 软件多过十年的工作后成 参与者们在绿色的草坪上跳跃、微笑,并欢快的手舞足蹈着。 Inhwa Yeom 为 50 岁以上的人群教授 p5.js的编程技能 学生们一边学习p5.js编程语言,一边翻阅着范例代码书籍。 - 参与者们围坐在桌前,聚精会神地在电脑上使用p5.js代码编辑器。 -
\ No newline at end of file + 参与者们围坐在桌前。 + From 05bb57e06e56a5703356ed773bd64a0bfc0374b3 Mon Sep 17 00:00:00 2001 From: Qingfeng Huang <92257843+Darrenhqf@users.noreply.github.com> Date: Fri, 21 Mar 2025 11:08:53 +0000 Subject: [PATCH 04/10] Update donate.mdx --- src/content/text-detail/zh-Hans/donate.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/text-detail/zh-Hans/donate.mdx b/src/content/text-detail/zh-Hans/donate.mdx index 0abeb7f0e4..a4ecc11804 100644 --- a/src/content/text-detail/zh-Hans/donate.mdx +++ b/src/content/text-detail/zh-Hans/donate.mdx @@ -30,5 +30,5 @@ import donate6 from "../images/donate-6.jpeg"; 参与者们在绿色的草坪上跳跃、微笑,并欢快的手舞足蹈着。 Inhwa Yeom 为 50 岁以上的人群教授 p5.js的编程技能 学生们一边学习p5.js编程语言,一边翻阅着范例代码书籍。 - 参与者们围坐在桌前。 + 参与者们围坐在电脑桌前。 From 60d61ccba1bd12c8205f3ca9a2682b54137d0c4c Mon Sep 17 00:00:00 2001 From: Qingfeng Huang <92257843+Darrenhqf@users.noreply.github.com> Date: Fri, 21 Mar 2025 11:13:49 +0000 Subject: [PATCH 05/10] Update code-of-conduct.mdx minor change for translation code-of-conduct content --- src/content/text-detail/zh-Hans/code-of-conduct.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/content/text-detail/zh-Hans/code-of-conduct.mdx b/src/content/text-detail/zh-Hans/code-of-conduct.mdx index a3f3847d57..5b5e72f9c7 100644 --- a/src/content/text-detail/zh-Hans/code-of-conduct.mdx +++ b/src/content/text-detail/zh-Hans/code-of-conduct.mdx @@ -12,12 +12,12 @@ title: "行为准则" - 跟踪或尾随 - 以及任何其他形式的骚扰行为 - 请谨慎判断您的言行。如果某些内容可能会让社区中的成员感到不适,请不要发布。 + 请谨慎判断您的言行。请不要发布能让社区中的成员感到不适的内容。 -- **保持尊重。** 不赞同并不是攻击社区其他成员思想或观点的理由。即使存在意见分歧,也要以耐心和关怀的态度对待每一个情况。 +- **保持尊重。** 不赞同并不是攻击社区其他成员思想或观点的理由。即使存在意见分歧,也要以耐心和关怀的态度对待每一种情况。 - **为他人着想。** 想想您的行为或贡献将如何影响社区中的其他成员。 - **保持开放。** 接纳新成员和新想法。我们的社区在不断发展,我们欢迎积极的改变。 -如果您认为有人违反了行为准则,我们希望您通过电子邮件 [hello@p5js.org](mailto:hello@p5js.org) 向我们举报。请在邮件中写明您的姓名和对事件的描述,我们会将尽快处理和向您回复。 +如果您认为有人违反了行为准则,我们希望您通过电子邮件 [hello@p5js.org](mailto:hello@p5js.org) 向我们举报。请在邮件中写明您的姓名和对事件的描述,我们会将尽快向您回复。 -有时候,违反行为准则的参与者并没有意识到自己的行为是有害的。坦诚的沟通可以帮助澄清问题,使大家继续前进。然而,如果该参与者继续这种行为,p5.js 团队可能会采取任何适当的措施,其中包括将其逐出所有 p5.js 社区空间,并向 p5.js 社区中的成员或公众通报该参与者的不当行为。 \ No newline at end of file +有时候,违反行为准则的参与者并没有意识到自己的行为是有害的。坦诚的沟通可以帮助澄清问题,使大家继续前进。然而,如果该参与者继续这种行为,p5.js 团队可能会采取任何适当的措施,其中包括将其逐出所有 p5.js 社区空间,并向 p5.js 社区中的成员或公众通报该参与者的不当行为。 From 21ed0aa994e540d4392363eae2e7c86b948ba19e Mon Sep 17 00:00:00 2001 From: Its-sunny69 <115334102+Its-sunny69@users.noreply.github.com> Date: Sun, 23 Mar 2025 11:51:55 +0530 Subject: [PATCH 06/10] fixed scrollbar in example output frame --- src/components/CodeEmbed/frame.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/CodeEmbed/frame.tsx b/src/components/CodeEmbed/frame.tsx index b070886eb7..3b0ba531da 100644 --- a/src/components/CodeEmbed/frame.tsx +++ b/src/components/CodeEmbed/frame.tsx @@ -36,6 +36,7 @@ const wrapInMarkup = (code: CodeBundle) => html, body { margin: 0; padding: 0; + overflow: hidden; } canvas { display: block; From f9d1ce77398ea29d06353428a474338f8faac649 Mon Sep 17 00:00:00 2001 From: Its-sunny69 <115334102+Its-sunny69@users.noreply.github.com> Date: Wed, 26 Mar 2025 22:04:22 +0530 Subject: [PATCH 07/10] Fixed scrollbar in example output frame 2.0 --- package-lock.json | 5 +++++ package.json | 1 + src/components/CodeEmbed/frame.tsx | 4 +--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index d4a116c578..b57c1bc660 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,6 +23,7 @@ "js-yaml": "^4.1.0", "keyword-extractor": "^0.0.28", "lodash": "^4.17.21", + "p5.js-website": "file:", "preact": "^10.19.5", "tailwindcss": "^3.4.1", "typescript": "^5.3.3", @@ -14925,6 +14926,10 @@ "node": ">=6" } }, + "node_modules/p5.js-website": { + "resolved": "", + "link": true + }, "node_modules/param-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", diff --git a/package.json b/package.json index d0ea9b404d..6505527878 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "js-yaml": "^4.1.0", "keyword-extractor": "^0.0.28", "lodash": "^4.17.21", + "p5.js-website": "file:", "preact": "^10.19.5", "tailwindcss": "^3.4.1", "typescript": "^5.3.3", diff --git a/src/components/CodeEmbed/frame.tsx b/src/components/CodeEmbed/frame.tsx index 3b0ba531da..4a44f86ab0 100644 --- a/src/components/CodeEmbed/frame.tsx +++ b/src/components/CodeEmbed/frame.tsx @@ -36,7 +36,6 @@ const wrapInMarkup = (code: CodeBundle) => html, body { margin: 0; padding: 0; - overflow: hidden; } canvas { display: block; @@ -166,9 +165,8 @@ export const CodeFrame = (props: CodeFrameProps) => { sandbox="allow-scripts allow-popups allow-modals allow-forms allow-same-origin" aria-label="Code Preview" title="Code Preview" - height={props.height} - width={props.width} loading={props.lazyLoad ? "lazy" : "eager"} + style={{width: "100%", height: "100%"}} /> ); From 004527bc298309d2a885a98ef5c9c6c1d44b5e96 Mon Sep 17 00:00:00 2001 From: Its-sunny69 <115334102+Its-sunny69@users.noreply.github.com> Date: Sun, 23 Mar 2025 11:51:55 +0530 Subject: [PATCH 08/10] fixed scrollbar in example output frame --- src/components/CodeEmbed/frame.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/CodeEmbed/frame.tsx b/src/components/CodeEmbed/frame.tsx index b070886eb7..3b0ba531da 100644 --- a/src/components/CodeEmbed/frame.tsx +++ b/src/components/CodeEmbed/frame.tsx @@ -36,6 +36,7 @@ const wrapInMarkup = (code: CodeBundle) => html, body { margin: 0; padding: 0; + overflow: hidden; } canvas { display: block; From 0d94df246d9fa5ad776e41fe027e84510af29691 Mon Sep 17 00:00:00 2001 From: Its-sunny69 <115334102+Its-sunny69@users.noreply.github.com> Date: Wed, 26 Mar 2025 22:04:22 +0530 Subject: [PATCH 09/10] Fixed scrollbar in example output frame 2.0 --- package-lock.json | 5 +++++ package.json | 1 + src/components/CodeEmbed/frame.tsx | 4 +--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index d4a116c578..b57c1bc660 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,6 +23,7 @@ "js-yaml": "^4.1.0", "keyword-extractor": "^0.0.28", "lodash": "^4.17.21", + "p5.js-website": "file:", "preact": "^10.19.5", "tailwindcss": "^3.4.1", "typescript": "^5.3.3", @@ -14925,6 +14926,10 @@ "node": ">=6" } }, + "node_modules/p5.js-website": { + "resolved": "", + "link": true + }, "node_modules/param-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", diff --git a/package.json b/package.json index d0ea9b404d..6505527878 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "js-yaml": "^4.1.0", "keyword-extractor": "^0.0.28", "lodash": "^4.17.21", + "p5.js-website": "file:", "preact": "^10.19.5", "tailwindcss": "^3.4.1", "typescript": "^5.3.3", diff --git a/src/components/CodeEmbed/frame.tsx b/src/components/CodeEmbed/frame.tsx index 3b0ba531da..4a44f86ab0 100644 --- a/src/components/CodeEmbed/frame.tsx +++ b/src/components/CodeEmbed/frame.tsx @@ -36,7 +36,6 @@ const wrapInMarkup = (code: CodeBundle) => html, body { margin: 0; padding: 0; - overflow: hidden; } canvas { display: block; @@ -166,9 +165,8 @@ export const CodeFrame = (props: CodeFrameProps) => { sandbox="allow-scripts allow-popups allow-modals allow-forms allow-same-origin" aria-label="Code Preview" title="Code Preview" - height={props.height} - width={props.width} loading={props.lazyLoad ? "lazy" : "eager"} + style={{width: "100%", height: "100%"}} /> ); From c4559982b597861ccc78ea871d2ad7894f4ebdd4 Mon Sep 17 00:00:00 2001 From: Its-sunny69 <115334102+Its-sunny69@users.noreply.github.com> Date: Thu, 27 Mar 2025 16:49:49 +0530 Subject: [PATCH 10/10] Ignoring package.json & package-lock.json --- src/components/CodeEmbed/frame.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CodeEmbed/frame.tsx b/src/components/CodeEmbed/frame.tsx index 4a44f86ab0..34a67b54ea 100644 --- a/src/components/CodeEmbed/frame.tsx +++ b/src/components/CodeEmbed/frame.tsx @@ -166,7 +166,7 @@ export const CodeFrame = (props: CodeFrameProps) => { aria-label="Code Preview" title="Code Preview" loading={props.lazyLoad ? "lazy" : "eager"} - style={{width: "100%", height: "100%"}} + style={{ width: "100%", height: "100%" }} /> );