-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
196 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: run-migrations | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
paths: | ||
- '**up.sql' | ||
- '**down.sql' | ||
- '**db.rs' | ||
pull_request: | ||
paths: | ||
- '**up.sql' | ||
- '**down.sql' | ||
- '**db.rs' | ||
workflow_dispatch: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
THOTH_GRAPHQL_API: https://api.thoth.pub | ||
THOTH_EXPORT_API: https://export.thoth.pub | ||
DATABASE_URL: postgres://thoth:thoth@localhost:5432/thoth | ||
|
||
jobs: | ||
run_migrations: | ||
runs-on: ubuntu-latest | ||
services: | ||
postgres: | ||
image: postgres:12 | ||
env: | ||
POSTGRES_PASSWORD: thoth | ||
POSTGRES_DB: thoth | ||
POSTGRES_USER: thoth | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
- 5432:5432 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.13.0' | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- uses: jetli/wasm-pack-action@v0.3.0 | ||
with: | ||
version: 'v0.10.3' | ||
- name: Install rollup | ||
run: sudo npm install -g rollup@3.12.0 | ||
- name: Compile WASM | ||
run: wasm-pack build thoth-app/ --target web --release | ||
- name: Pack APP | ||
run: rollup thoth-app/main.js --format iife --file thoth-app/pkg/thoth_app.js | ||
- name: Build binary | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --verbose | ||
- name: Run migrations | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: run | ||
args: migrate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: run-migrations | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
paths-ignore: | ||
- '**up.sql' | ||
- '**down.sql' | ||
- '**db.rs' | ||
pull_request: | ||
paths-ignore: | ||
- '**up.sql' | ||
- '**down.sql' | ||
- '**db.rs' | ||
|
||
jobs: | ||
run_migrations: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No build required"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
use yew::html; | ||
use yew::prelude::*; | ||
|
||
pub struct AboutComponent {} | ||
|
||
impl Component for AboutComponent { | ||
type Message = (); | ||
type Properties = (); | ||
|
||
fn create(_ctx: &Context<Self>) -> Self { | ||
AboutComponent {} | ||
} | ||
|
||
fn view(&self, _ctx: &Context<Self>) -> Html { | ||
html! { | ||
<div class="container"> | ||
<h1 class="title">{ "About Us" }</h1> | ||
<div class="content"> | ||
<p>{ "Thoth is an open metadata management and dissemination platform. As an organisation, we are focused on:" }</p> | ||
<ul> | ||
<li>{ "creation, curation, and dissemination of high-quality metadata records which are essential for the advancement of public knowledge;" }</li> | ||
<li>{ "promoting openness in scholarly communications such as open access, open licensing, FLOSS, open data, open metadata, and open standards and protocols;" }</li> | ||
<li>{ "embracing infrastructural and platform diversity as an inherent component of a flourishing scholarly communications landscape;" }</li> | ||
<li>{ "providing high-quality solutions and services for metadata creation, management, dissemination, archiving and preservation." }</li> | ||
</ul> | ||
<p>{ "Thoth has been developed by Javier Arias in the context of the Community-led Open Publication Infrastructures for Monographs (COPIM) project funded by UKRI and the Arcadia Fund." }</p> | ||
<p>{ "Thoth is incorporated as a Community Interest Company in the UK, no. 14549556." }</p> | ||
<p>{ "Address: 40 Devonshire Road, Cambridge, United Kingdom, CB1 2BL" }</p> | ||
<p class="title is-5">{ "Organisation" }</p> | ||
<ul> | ||
<li>{ "Joe Deville (Director)" }</li> | ||
<li>{ "Rupert Gatti (Director)" }</li> | ||
<li>{ "Vincent W.J. van Gerven Oei (Director)" }</li> | ||
<li>{ "Javier Arias (CTO)" }</li> | ||
<li>{ "Ross Higman (Software Engineer)" }</li> | ||
</ul> | ||
<p>{ "Support us through the " }<a href={ "https://www.openbookcollective.org/packages/20/info/" }>{ "Open Book Collective" }</a>{ "." }</p> | ||
</div> | ||
</div> | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.