Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: js-programming/js.org
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 293a11f
Choose a base ref
...
head repository: js-org/js.org
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 873ac4e
Choose a head ref

Commits on Apr 7, 2020

  1. By coding pages -2073

    iguanren authored Apr 7, 2020
    Copy the full SHA
    8dcbdec View commit details

Commits on Apr 11, 2020

  1. Update cnames_active.js

    iguanren authored Apr 11, 2020
    Copy the full SHA
    4732ea7 View commit details
  2. Update cnames_active.js

    iguanren authored Apr 11, 2020
    Copy the full SHA
    d412a05 View commit details

Commits on Apr 12, 2020

  1. Update cnames_active.js

    Lennert De Ryck authored Apr 12, 2020
    Copy the full SHA
    89e16d1 View commit details

Commits on Apr 15, 2020

  1. nomic.js.org

    basicer authored Apr 15, 2020
    Copy the full SHA
    7d44b56 View commit details
  2. Added url for soniq

    terehov authored Apr 15, 2020
    Copy the full SHA
    fdb9142 View commit details

Commits on Apr 16, 2020

  1. Copy the full SHA
    6ebf1a4 View commit details

Commits on Apr 17, 2020

  1. Merge pull request js-org#3920 from basicer/patch-1

    add nomic.js.org
    indus authored Apr 17, 2020
    Copy the full SHA
    a81b412 View commit details
  2. Merge pull request js-org#3922 from terehov/patch-1

    add soniq.js.org
    indus authored Apr 17, 2020
    Copy the full SHA
    95a9736 View commit details
  3. Merge pull request js-org#3906 from lennertderyck/patch-1

    add sesam.js.org
    indus authored Apr 17, 2020
    Copy the full SHA
    aa6787b View commit details
  4. Merge pull request js-org#3926 from upsetjs/master

    add upset.js.org
    indus authored Apr 17, 2020
    Copy the full SHA
    6c4b96f View commit details
  5. Added h3 subdomain

    I would love to hose the site of my tiny JS framework on js.org... I just provided a bare-bones site for now, but it already uses the framework itself... hope you can accept it! ;)
    h3rald authored Apr 17, 2020
    Copy the full SHA
    cd70942 View commit details
  6. add remote-faces

    dai-shi committed Apr 17, 2020
    Copy the full SHA
    58affcd View commit details
  7. Update cnames_active.js

    add domain: "mansiart": "minaraja.github.io/mansiart"
    minaraja authored Apr 17, 2020
    Copy the full SHA
    401ce03 View commit details
  8. simpleserver.js.org

    davidm5375 authored Apr 17, 2020
    Copy the full SHA
    f8c30c7 View commit details
  9. Update cnames_active.js

    iguanren authored Apr 17, 2020
    Copy the full SHA
    a678301 View commit details
  10. Alphabetical (s before u)

    MattIPv4 authored Apr 17, 2020
    Copy the full SHA
    8f0c80b View commit details
  11. Update ns_active.js

    davidm5375 authored Apr 17, 2020
    Copy the full SHA
    ea4be38 View commit details
  12. Update cnames_active.js

    davidm5375 authored Apr 17, 2020
    Copy the full SHA
    29f213b View commit details
  13. Update cnames_active.js

    davidm5375 authored Apr 17, 2020
    Copy the full SHA
    f964ddd View commit details
  14. Merge pull request js-org#3928 from h3rald/patch-1

    add h3.js.org
    indus authored Apr 17, 2020
    Copy the full SHA
    d5ab0d7 View commit details
  15. Merge pull request js-org#3929 from dai-shi/remote-faces

    add remote-faces.js.org
    indus authored Apr 17, 2020
    Copy the full SHA
    acc9c1d View commit details
  16. Merge pull request js-org#3930 from minaraja/master

    add mansiart.js.org
    indus authored Apr 17, 2020
    Copy the full SHA
    3620b7b View commit details

Commits on Apr 18, 2020

  1. Update cnames_active.js

    iguanren authored Apr 18, 2020
    Copy the full SHA
    567bb3e View commit details
  2. Update cnames_active.js

    indus authored Apr 18, 2020
    Copy the full SHA
    82bf8f0 View commit details
  3. Merge pull request js-org#3932 from iguanren/master

    add wss.js.org
    indus authored Apr 18, 2020
    Copy the full SHA
    b2a0627 View commit details
  4. Update cnames_active.js

    indus authored Apr 18, 2020
    Copy the full SHA
    e5506db View commit details
  5. Merge pull request js-org#3931 from davidm5375/patch-5

    add simpleserver.js.org
    indus authored Apr 18, 2020
    Copy the full SHA
    7ec76d2 View commit details
  6. Update cnames_active.js

    added readit
    teebu authored Apr 18, 2020
    Copy the full SHA
    8650077 View commit details

Commits on Apr 19, 2020

  1. Copy the full SHA
    bccf9e4 View commit details
  2. Add corona

    soroushchehresa authored Apr 19, 2020
    Copy the full SHA
    cc1228d View commit details
  3. Alphabetical (o before p)

    MattIPv4 authored Apr 19, 2020
    Copy the full SHA
    e678fbc View commit details
  4. Copy the full SHA
    cd915ae View commit details
  5. Rm https://

    MattIPv4 authored Apr 19, 2020
    Copy the full SHA
    ae0a96d View commit details
  6. Alphabetical

    MattIPv4 authored Apr 19, 2020
    Copy the full SHA
    aa7da85 View commit details
  7. Merge pull request js-org#3933 from teebu/master

    add readit.js.org
    indus authored Apr 19, 2020
    Copy the full SHA
    3d9c696 View commit details
  8. Merge pull request js-org#3937 from hydrogen-studio/patch-2

    add discordhy.js.org
    indus authored Apr 19, 2020
    Copy the full SHA
    43abb16 View commit details
  9. Merge pull request js-org#3936 from soroushchehresa/patch-2

    add corona.js.org
    indus authored Apr 19, 2020
    Copy the full SHA
    93bda2c View commit details
  10. Update cnames_active.js

    tmorehouse authored Apr 19, 2020
    Copy the full SHA
    074a232 View commit details

Commits on Apr 20, 2020

  1. Copy the full SHA
    f55e44d View commit details
  2. Update cnames_active.js

    Add a new record
    "unicorn": "mirai-explorer.github.io/unicorn"
    Mirai-explorer authored Apr 20, 2020
    Copy the full SHA
    b06c01a View commit details
  3. Update cnames_active.js

    cungudafa authored Apr 20, 2020
    Copy the full SHA
    f80fbe0 View commit details
  4. Merge pull request js-org#3934 from tmorehouse/patch-1

    change bootstrap-vue.js.org
    indus authored Apr 20, 2020
    Copy the full SHA
    d993391 View commit details
  5. Merge pull request js-org#3938 from poipoii/master

    add gatsby-source-pixiv.js.org
    indus authored Apr 20, 2020
    Copy the full SHA
    fdd4fe5 View commit details
  6. Merge pull request js-org#3939 from Mirai-explorer/master

    add unicorn.js.org
    indus authored Apr 20, 2020
    Copy the full SHA
    d0dd875 View commit details

Commits on Apr 21, 2020

  1. Italia.js.com

    Hi, I'd like to assign this domain to the repo of my org. Previously Italia JS was under Milano JS as a sub org but now has its own repo.
    In the next weeks, we'll start adding some content to the page, mostly to announce our online meetups.
    
    Thanks
    Granze authored Apr 21, 2020
    Copy the full SHA
    50a2a2b View commit details
  2. Merge pull request js-org#3943 from Granze/patch-2

    add italia.js.org
    indus authored Apr 21, 2020
    Copy the full SHA
    d2da05b View commit details
  3. add smoke.js.org

    jyoungblood authored Apr 21, 2020
    Copy the full SHA
    95915e0 View commit details

Commits on Apr 22, 2020

  1. add coldemo.github.io

    fritx committed Apr 22, 2020
    Copy the full SHA
    705970f View commit details
  2. Merge pull request js-org#3946 from hxgf/patch-1

    add smoke.js.org
    indus authored Apr 22, 2020
    Copy the full SHA
    bfe31a1 View commit details
Showing with 2,280 additions and 502 deletions.
  1. +1 −0 .github/funding.yml
  2. +86 −0 .github/workflows/validate.yml
  3. +16 −0 .prettierrc.json
  4. +17 −2 PULL_REQUEST_TEMPLATE.md
  5. +59 −13 README.md
  6. +2,079 −479 cnames_active.js
  7. +12 −6 ns_active.js
  8. +10 −2 records_restricted.js
1 change: 1 addition & 0 deletions .github/funding.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
open_collective: js-org
86 changes: 86 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: Validate

on:
push:
branches:
- master
pull_request:
branches:
- master
types:
- opened
- reopened
- edited
- synchronize

permissions:
contents: read

jobs:
validate-cnames:
runs-on: ubuntu-latest

env:
GH_EVENT_HASH: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}

steps:
- uses: actions/checkout@v4
with:
ref: ${{ env.GH_EVENT_HASH }}

- uses: actions/checkout@v4
with:
repository: js-org/js.org-cleanup
path: cleanup

- uses: actions/setup-node@v4
with:
node-version-file: cleanup/.nvmrc
cache: npm
cache-dependency-path: cleanup/package-lock.json

- name: Install dependencies
run: npm ci
working-directory: cleanup

- name: Validate cnames_active.js
run: node index.js --validate ../cnames_active.js
working-directory: cleanup

validate-pr-template:
if: github.event_name == 'pull_request'

runs-on: ubuntu-latest

steps:
- name: Validate PR template
uses: actions/github-script@v7
with:
script: |
const body = context.payload.pull_request.body || "";
// 1. Check both checkboxes
const checkbox1 = /\[x\].*?There is reasonable content/i.test(body);
const checkbox2 = /\[x\].*?I have read and accepted/i.test(body);
// 2. URL must be on the exact "The site content can be seen at ..." line
// https://regex101.com/r/N36fsT
const urlLineRegex = /^[ \t]*-[ \t]*The site content can be seen at[ \t]+(?:<)?(?:\[.*?\]\()?https?:\/\/[^\s>()]+(?:\))?(?:>)?/m;
const urlMatch = urlLineRegex.exec(body);
const urlValid = urlMatch !== null;
// 3. Explanation must follow the blockquote marker
const explanationMatch = />\s*The site content is(?:\s*|\s*\n)(.+)/i.exec(body);
const explanation = explanationMatch && explanationMatch[1].trim().length > 10;
if (!checkbox1 || !checkbox2 || !urlValid || !explanation) {
core.setFailed(
"❌ PR template is not properly filled:\n" +
`Checkbox1: ${checkbox1 ? '✅' : '❌'}\n` +
`Checkbox2: ${checkbox2 ? '✅' : '❌'}\n` +
`URL on correct line: ${urlValid ? '✅' : '❌'}\n` +
`Explanation: ${explanation ? '✅' : '❌'}`
);
} else {
console.log("✅ PR template format is valid.");
}
16 changes: 16 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"printWidth": 1000,
"quoteProps": "preserve",
"semi": false,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "none",
"overrides": [
{
"files": "records_restricted.js",
"options": {
"tabWidth": 4
}
}
]
}
19 changes: 17 additions & 2 deletions PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
- [x] There is reasonable content on the page (see: [No Content](https://github.com/js-org/js.org/wiki/No-Content))
- [x] I have read and accepted the [Terms and Conditions](http://js.org/terms.html)
<!--
Thanks for creating a pull request to request a new subdomain from JS.ORG
Before creating your pull request, please complete the following steps:
- Ensure that your pull request changes only the cnames_active.js file, adding a single new line for your subdomain request
- Tick the two checkboxes, agreeing to the sentences, below by placing an x inside the square brackets ([ ] becomes [x])
- Add a link (GitHub repository, Vercel deployment, etc.) and explanation below for your content so we can validate your request
-->

- [ ] There is reasonable content on the page (see: [No Content](https://github.com/js-org/js.org/wiki/No-Content))
- [ ] I have read and accepted the [Terms and Conditions](http://js.org/terms.html)
- The site content can be seen at <link>

> The site content is ...
72 changes: 59 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,70 @@
[![JS.ORG Logo](http://logo.js.org/png/github_header.png)](http://js.org)

[![JS.ORG](https://img.shields.io/badge/js.org-+-FFE70B.svg?style=flat-square)](http://js.org)
[![PRs](https://img.shields.io/github/issues-pr-closed-raw/js-org/js.org.svg?style=flat-square&colorB=31a88b&label=Pull%20Requests)](https://github.com/js-org/js.org/pulls?q=is%3Apr+is%3Aclosed+label%3Aadd)
[![Donate](https://img.shields.io/badge/Donate-for_registrar_fees-blue.svg?style=flat-square&logo=paypal)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RPBWBDBKW62AC)
[![PRs](https://img.shields.io/github/issues-pr-closed-raw/js-org/js.org.svg?style=flat-square&colorB=FFE70B&label=pull%20requests)](https://github.com/js-org/js.org/pulls?q=is%3Apr+is%3Aclosed+label%3Aadd)
[![Contributors](https://img.shields.io/github/contributors-anon/js-org/js.org?color=FFE70B&style=flat-square)](https://github.com/js-org/js.org/graphs/contributors)
[![Activity](https://img.shields.io/github/commit-activity/m/js-org/js.org?color=FFE70B&style=flat-square)](https://github.com/js-org/js.org/pulse/monthly)
[![Donate](https://img.shields.io/badge/Donate-for_registrar_fees-1F87FF.svg?style=flat-square&logo=open-collective&logoColor=fff)](https://opencollective.com/js-org)

---

**To get a short and sleek subdomain for your own GitHub Pages site follow these 4 Steps:**
## GitHub Pages

To get a short and sleek subdomain for your own GitHub Pages site from JS.ORG follow these 4 steps:

### Step 1
If you haven't already, now it's time to log in to your GitHub account and set up your GitHub Pages site following the instructions [here](https://pages.github.com/). To get a head start you can simply use the generator with one of the provided themes and **add some reasonable content to your new page**.

If you haven't already, log in to your GitHub account and set up your GitHub Pages site following [their instructions](https://pages.github.com). **Make sure to add some reasonable content to your new page**.

### Step 2
Now determine your js.org subdomain: either choose your username or the name of your repo according to the existing GitHub Pages URL (for ```http://foo.github.io/bar```, either ```foo.js.org``` or ```bar.js.org``` would be possible). More details in the [wiki](https://github.com/js-org/js.org/wiki).

Now determine your JS.ORG subdomain: either choose your username or the name of your repository according to the existing GitHub Pages URL (for `http://foo.github.io/bar`, either `foo.js.org` or `bar.js.org` would be possible). We have more guidance on picking an appropriate subdomain in our wiki: <https://github.com/js-org/js.org/wiki/Subdomain-Determination>.

### Step 3
Add a file named ```CNAME``` to your repo (in the ```gh-pages``` branch for project pages) with a single line matching the domain you have chosen (e.g. ```foo.js.org```). If you prefer a webinterface form, have a look at [GitHub Pages Help](https://help.github.com/articles/adding-or-removing-a-custom-domain-for-your-github-pages-site/).

If you're [publishing from a branch](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-from-a-branch):

Add a file named `CNAME` to your repo (in the `gh-pages` branch for project pages, or the branch that you've set as your GitHub Pages source) with a single line matching the domain you have chosen (e.g. `foo.js.org`). You can also use the UI in the repository settings as discussed below, if desired.

If you're [publishing using a workflow](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-with-a-custom-github-actions-workflow):

A `CNAME` file will not be processed when publishing a site via a workflow, so you will need to use the UI in the repository settings to [add the custom domain](https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site#configuring-a-subdomain). Head into the repository settings and under the Pages tab add your JS.ORG subdomain as a custom domain.

### Step 4
To finish the procedure, make a pull request in this GitHub repository that adds your subdomain to the [list](https://github.com/js-org/js.org/blob/master/cnames_active.js) of existing JS.ORG domains. Your new URL should go live within 24 hours (keep an eye on your pull request in case of a naming conflict).

#

### Thanks
... to **[Cloudflare](https://www.cloudflare.com)** for their superb DNS service that makes this possible. While JS.ORG is using their free plan - to a shameless extent - they helped us more than once with some flexible solutions and extended quotas. Many thanks!
To finish the procedure, make a pull request in this GitHub repository that adds your subdomain to the [subdomains list](https://github.com/js-org/js.org/blob/master/cnames_active.js) of existing JS.ORG domains. Your new URL should go live within 24 hours (keep an eye on your pull request in case of a naming conflict or if there are requested changes).

## Other Providers

If you'd like to use JS.ORG for a website hosted elsewhere, you can do that too!

### Step 1

If you haven't already, get your site set up with whatever hosting provider you desire. Note that to use JS.ORG, your hosting provider will need to support adding custom domains via a CNAME DNS record.

### Step 2

Now determine your JS.ORG subdomain: either choose your username or the name of your repository according to the existing GitHub Pages URL (for `http://foo.github.io/bar`, either `foo.js.org` or `bar.js.org` would be possible). We have more guidance on picking an appropriate subdomain in our wiki: <https://github.com/js-org/js.org/wiki/Subdomain-Determination>.

### Step 3

Follow your hosting provider's instructions for adding a custom domain to your site, if configuration is needed. Our wiki contains a list of hosting providers we've seen folks successfully use in the past, including some notes on correctly configuring some of them: <https://github.com/js-org/js.org/wiki/3rd-party-hosts>.

### Step 4

As above with adding a subdomain to a GitHub Pages site, the final step is to make a pull request in this GitHub repository that adds your subdomain to the [subdomains list](https://github.com/js-org/js.org/blob/master/cnames_active.js) of existing JS.ORG domains.

---

> [!IMPORTANT]
> Please be aware that there are some rules that apply to website content hosted on JS.ORG subdomains:
>
> **Websites must be *directly* related to the JavaScript ecosystem/community (such as NPM packages / JS tools, not personal pages / portfolios)**
>
> - No placeholder pages. Websites must contain substantive content relevant to their purpose.
> - No automatic redirects away from the **js.org** domain. Redirects must require user interaction.
> - No unrelated content. Websites must stay focused on their intended topic or purpose.
>
> _Additionally, please be aware of our full [Terms and Conditions](https://js.org/terms.html) for the JS.ORG service._
---

Thanks to **[Cloudflare](https://www.cloudflare.com)** for their awesome DNS service that makes this service possible. While JS.ORG is using their free plan - to a shameless extent - they helped us more than once with some flexible solutions and extended quotas. Many thanks!
Loading