Skip to content

Commit

Permalink
Merge pull request #61 from dothq/staging
Browse files Browse the repository at this point in the history
Created a third-party licences page
  • Loading branch information
kierandrewett committed Jul 21, 2023
2 parents 2ef3655 + bb0788d commit b17696e
Show file tree
Hide file tree
Showing 53 changed files with 34,626 additions and 42 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/licences.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Generate licences

on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # Runs everyday at 00:00

jobs:
generate:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Install dependencies
run: |
yarn
- name: Generate licences
env:
TOKEN: ${{ secrets.ROBOT_TOKEN }}
run: |
node scripts/licences.js
git add generated/
- name: Commit and push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.ROBOT_TOKEN }}
branch: staging
author_email: [email protected]
author_name: dothq-robot
message: "📄 Generate licence page data"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ target

.env

hs_ed25519_secret_key
hs_ed25519_secret_key
8 changes: 4 additions & 4 deletions app/components/common/Footer/socials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

import { l } from "../../../l10n";
import { getComponentConfig } from "../../../utils/data";
import { Discord } from "../../icons/social/Discord";
import { Mastodon } from "../../icons/social/Mastodon";
import { Matrix } from "../../icons/social/Matrix";
import { Twitter } from "../../icons/social/Twitter";
import { Discord } from "../../icons/brands/Discord";
import { Mastodon } from "../../icons/brands/Mastodon";
import { Matrix } from "../../icons/brands/Matrix";
import { Twitter } from "../../icons/brands/Twitter";
import FooterSection from "./section";

const socialIcons = {
Expand Down
19 changes: 19 additions & 0 deletions app/components/icons/ChevronRight.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import { Icon, IconProps } from ".";

export const ChevronRight = (props: IconProps) => {
return (
<Icon {...props} ariaLabel="Chevron facing right">
<path
xmlns="http://www.w3.org/2000/svg"
fill-rule="evenodd"
clip-rule="evenodd"
d="M4.29289 1.29289C3.90237 1.68342 3.90237 2.31658 4.29289 2.70711L9.58579 8L4.29289 13.2929C3.90237 13.6834 3.90237 14.3166 4.29289 14.7071C4.68342 15.0976 5.31658 15.0976 5.70711 14.7071L11.7071 8.70711C12.0976 8.31658 12.0976 7.68342 11.7071 7.29289L5.70711 1.29289C5.31658 0.902369 4.68342 0.902369 4.29289 1.29289Z"
fill="currentColor"
/>
</Icon>
);
};
24 changes: 24 additions & 0 deletions app/components/icons/Note.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import { Icon, IconProps } from ".";

export const Note = (props: IconProps) => {
return (
<Icon {...props} ariaLabel="Note">
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M2 7L2 9C3.86384 9 5.42994 10.2748 5.87398 12H10.126C10.5701 10.2748 12.1362 9 14 9V7C12.1362 7 10.5701 5.72523 10.126 4H5.87398C5.42994 5.72523 3.86384 7 2 7ZM3 2C1.34315 2 0 3.34315 0 5V11C0 12.6569 1.34315 14 3 14H13C14.6569 14 16 12.6569 16 11V5C16 3.34315 14.6569 2 13 2H3ZM12.2676 4C12.6134 4.5978 13.2597 5 14 5C14 4.44772 13.5523 4 13 4H12.2676ZM12.2676 12H13C13.5523 12 14 11.5523 14 11C13.2597 11 12.6134 11.4022 12.2676 12ZM3.73244 12C3.38663 11.4022 2.74028 11 2 11C2 11.5523 2.44772 12 3 12H3.73244ZM3.73244 4C3.38663 4.5978 2.74028 5 2 5C2 4.44772 2.44772 4 3 4H3.73244Z"
fill="currentColor"
/>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M8 10C9.10457 10 10 9.10457 10 8C10 6.89543 9.10457 6 8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10Z"
fill="currentColor"
/>
</Icon>
);
};
32 changes: 32 additions & 0 deletions app/components/icons/OpenInNew.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import { Icon, IconProps } from ".";

export const OpenInNew = (props: IconProps) => {
return (
<Icon {...props} ariaLabel="Open in new">
<g clip-path="url(#clip0_1509_9)">
<path
d="M10 1C10 0.447715 10.4477 0 11 0H14C15.1046 0 16 0.895431 16 2V5C16 5.55228 15.5523 6 15 6C14.4477 6 14 5.55228 14 5V3.41421L10.7071 6.70711C10.3166 7.09763 9.68342 7.09763 9.29289 6.70711C8.90237 6.31658 8.90237 5.68342 9.29289 5.29289L12.5858 2H11C10.4477 2 10 1.55228 10 1Z"
fill="currentColor"
/>
<path
d="M15 10C15 9.44771 14.5523 9 14 9C13.4477 9 13 9.44771 13 10V12C13 13.1046 12.1046 14 11 14H4C2.89543 14 2 13.1046 2 12V5C2 3.89543 2.89543 3 4 3H6C6.55228 3 7 2.55228 7 2C7 1.44772 6.55228 1 6 1H4C1.79086 1 0 2.79086 0 5V12C0 14.2091 1.79086 16 4 16H11C13.2091 16 15 14.2091 15 12V10Z"
fill="currentColor"
/>
</g>
<defs>
<clipPath id="clip0_1509_9">
<rect
width="16"
height="16"
fill="white"
transform="matrix(-1 0 0 1 16 0)"
/>
</clipPath>
</defs>
</Icon>
);
};
18 changes: 18 additions & 0 deletions app/components/icons/Search.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import { Icon, IconProps } from ".";

export const Search = (props: IconProps) => {
return (
<Icon {...props} ariaLabel="Search">
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M13 6.5C13 2.91015 10.0899 0 6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C7.85725 13 9.11734 12.584 10.1597 11.8726C10.2616 11.8031 10.399 11.8132 10.4862 11.9004L14.2929 15.7071C14.6834 16.0976 15.3166 16.0976 15.7071 15.7071C16.0976 15.3166 16.0976 14.6834 15.7071 14.2929L11.9004 10.4862C11.8132 10.399 11.8031 10.2616 11.8726 10.1597C12.584 9.11734 13 7.85725 13 6.5ZM11 6.5C11 4.01472 8.98528 2 6.5 2C4.01472 2 2 4.01472 2 6.5C2 8.98528 4.01472 11 6.5 11C8.98528 11 11 8.98528 11 6.5Z"
fill="currentColor"
/>
</Icon>
);
};
Loading

0 comments on commit b17696e

Please sign in to comment.