Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
fe17230
feat(design): css parts
anuragxxd Nov 4, 2023
df878b1
Merge branch 'main' into css/parts
anuragxxd Nov 4, 2023
a293981
docs(design): form component
anuragxxd Nov 5, 2023
d8bf051
fix(docs): bug on refesh
anuragxxd Nov 5, 2023
0bc078d
fix(monorepo): verison coflicts
anuragxxd Nov 5, 2023
07aaed2
fix(design): recursive clone
anuragxxd Nov 5, 2023
a641b05
docs: added more complex example
anuragxxd Nov 5, 2023
d6363e7
chore: remove storybook
JaeAeich Nov 6, 2023
9d24c87
chore: add tesfields
JaeAeich Nov 6, 2023
c592ff8
feat: parse form data
JaeAeich Nov 6, 2023
05a57bc
Merge branch 'main' into tes/lit
JaeAeich Nov 7, 2023
a01e8e1
chore: change define as stated in lit docs
JaeAeich Nov 7, 2023
7faf327
chore(minor): typo
JaeAeich Nov 8, 2023
8a737d7
docs: docs
JaeAeich Nov 8, 2023
105cbb6
chore: minor
JaeAeich Nov 8, 2023
b775fb7
fix(vercel): fix deploy
JaeAeich Nov 8, 2023
34560e2
fix: property and state bug
JaeAeich Nov 11, 2023
baa2036
Merge branch 'main' into tes/lit
JaeAeich Nov 11, 2023
e33d27a
chore: lint fix
JaeAeich Nov 11, 2023
abf6f11
Merge branch 'main' into tes/lit
JaeAeich Nov 12, 2023
8b8f5dc
fix: lint issue and add min fields
JaeAeich Nov 12, 2023
307aa19
feat: add submit response
JaeAeich Nov 12, 2023
0a57a76
fix: typo
JaeAeich Nov 13, 2023
a073ce3
chore: merge main
JaeAeich Nov 14, 2023
54da77a
fix: minor fixes
JaeAeich Nov 14, 2023
c20be31
fix: tag fields
JaeAeich Nov 14, 2023
2fb3b02
feat: add types and fixes
JaeAeich Nov 14, 2023
67c7ce4
docs: add readme
JaeAeich Nov 15, 2023
f47bec0
Merge branch 'main' into tes/lit
JaeAeich Nov 15, 2023
65b6f24
chore: rename file
JaeAeich Nov 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 98 additions & 0 deletions apps/documentation/docs/tes/components/create-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Form Component <Badge type="warning" text="beta" />

<div class="component-name">&lt;ecc-client-lit-ga4gh-tes-create-run&gt;</div>
This component is used to create task runs using TES API.
<ClientOnly>
<div :class="isDark ? 'component-dark component' : 'component-light component'">
<ecc-client-lit-ga4gh-tes-create-run>
</ecc-client-lit-ga4gh-tes-create-run>

::: details Code Blocks
::: code-group

```js [HTML]
import "@elixir-cloud/lit-tes";

<ecc-client-lit-ga4gh-tes-create-run />;
```

<!-- ```jsx [React]

``` -->

:::

</div>
</ClientOnly>

## Importing

```js [HTML]
import "@elixir-cloud/lit-tes";
```

## Properties

| Property | Required | Default | Type | Description |
| --------------------- | -------- | ----------------------------------------- | -------- | ----------- |
| [`baseURL`](#baseURL) | `false` | `https://protes.rahtiapp.fi/ga4gh/tes/v1` | `String` | Base URL |

### baseURL

This property is used to give `POST` endpoint to create `Task run`. The provided baseURL is concatinated with `/runs` and is used as an endpoint to create a `POST` request.

## Parts

<!-- TODO: -->

<!-- | Part Name | Description |
| --------------- | --------------------------------------------------------------------------------- |
| `` | Component's internal form. | -->

## CSS Variables

## Examples

### With baseURL

<ClientOnly>
<div :class="isDark ? 'component-dark component' : 'component-light component'">
<!-- Render ecc-utils-design-form component only after the component is loaded -->
<ecc-client-lit-ga4gh-tes-create-run
baseURL="http://localhost:8080/ga4gh/tes/v1"
/>

::: details Code Blocks
::: code-group

```js [HTML]
import "@elixir-cloud/lit-tes";

<ecc-client-lit-ga4gh-tes-create-run baseURL="http://localhost:8080/ga4gh/tes/v1" />;
```

<!-- ```jsx [React]

``` -->

:::

</div>
</ClientOnly>

> The baseURL provided is localhost:8080, for this to work, have a TES implementation running on PORT 8080 or locally deploy [proTES](https://github.com/elixir-cloud-aai/proTES).

<script setup>
import { onMounted } from "vue";
import { useData } from "vitepress";
const { isDark } = useData();
onMounted(() => {
import("@elixir-cloud/lit-tes").then((module) => {
document.querySelectorAll("ecc-client-lit-ga4gh-tes-create-run").forEach((element) => {
element.addEventListener("form-submit", (e) => {
console.log("form-submitted", e.detail);
});
});
});
});
</script>
7 changes: 7 additions & 0 deletions apps/documentation/docs/tes/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Installation

Install `@elixir-cloud/lit-tes` package via npm.

```bash
npm i @elixir-cloud/lit-tes
```
3 changes: 3 additions & 0 deletions apps/documentation/docs/tes/introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Introduction

`@elixir-cloud/lit-tes` is a library that provides low level, highly customizable, cross framework and userfriendly custom Web Components for interacting with TES API.
2 changes: 2 additions & 0 deletions apps/documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
"dev": "vitepress dev docs",
"build": "vitepress build docs",
"start": "vitepress preview docs",
"lint": "prettier .",
"lint:fix": "prettier --write ."
},
"dependencies": {
"@elixir-cloud/design": "*",
"@elixir-cloud/lit-tes": "*",
"@elixir-cloud/lit-wes": "*",
"vitepress": "^1.0.0-rc.24",
"vue": "3.3.5"
Expand Down
Loading