Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbayly committed Sep 25, 2024
1 parent fc26a5e commit 858d23c
Show file tree
Hide file tree
Showing 52 changed files with 2,964 additions and 1,701 deletions.
5 changes: 2 additions & 3 deletions docs/.vuepress/components/BaseCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
<slot></slot>
</div>
</template>
<script setup lang="ts">
</script>
<script setup lang="ts"></script>

<style lang="scss">
.card {
Expand All @@ -19,7 +18,7 @@
height: 100%;
&:hover {
border: 1px solid #E968DD;
border: 1px solid #e968dd;
text-decoration: none;
}
}
Expand Down
4 changes: 2 additions & 2 deletions docs/.vuepress/components/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defineProps<{
height: 48px;
line-height: 48px;
border-radius: 48px;
background: #E968DD;
background: #e968dd;
font-weight: 400;
font-size: 16px;
color: #fff;
Expand All @@ -34,6 +34,6 @@ defineProps<{
opacity: 0.87;
}
.buttonRed {
background: #E968DD;
background: #e968dd;
}
</style>
12 changes: 6 additions & 6 deletions docs/.vuepress/components/QuickStart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
:to="
quickStart.link.replace(
'https://academy.subquery.network',
''
'',
)
"
>
Expand Down Expand Up @@ -101,19 +101,19 @@ const fetchAllQuickStart = () => {
(a, b) =>
b.quick_start_data.reduce(
(cur, add) => cur + add.quick_start_data.length,
0
0,
) -
a.quick_start_data.reduce(
(cur, add) => cur + add.quick_start_data.length,
0
)
0,
),
);
quickStartJson.value = guides.map((family) => {
family.quick_start_data.map(
(qsd) =>
(qsd.quick_start_data = qsd.quick_start_data.filter(
(qs) => qs.internal
))
(qs) => qs.internal,
)),
);
return family;
});
Expand Down
4 changes: 2 additions & 2 deletions docs/.vuepress/components/Typography.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
fontFamily: !family
? '' // invalid value would not set, use the default set by css
: family === 'heading'
? 'var(--font-family-heading)'
: 'var(--font-family)',
? 'var(--font-family-heading)'
: 'var(--font-family)',
fontSize: fontSize ? fontSize + 'px' : '',
}"
>
Expand Down
14 changes: 7 additions & 7 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,40 +193,40 @@ export default defineUserConfig({
app.pages.map(({ path }) => [
path.replace(
"/subquery_network/node_operators/indexers/",
"/subquery_network/indexers/"
"/subquery_network/indexers/",
),
path,
])
]),
),
...Object.fromEntries(
app.pages.map(({ path }) => [
path.replace("/indexer/academy/", "/academy/"),
path,
])
]),
),
...Object.fromEntries(
app.pages.map(({ path }) => [
path.replace("/indexer/build/", "/build/"),
path,
])
]),
),
...Object.fromEntries(
app.pages.map(({ path }) => [
path.replace("/indexer/miscellaneous/", "/miscellaneous/"),
path,
])
]),
),
...Object.fromEntries(
app.pages.map(({ path }) => [
path.replace("/indexer/quickstart/", "/quickstart/"),
path,
])
]),
),
...Object.fromEntries(
app.pages.map(({ path }) => [
path.replace("/indexer/run_publish/", "/run_publish/"),
path,
])
]),
),
};
},
Expand Down
14 changes: 6 additions & 8 deletions docs/.vuepress/public/assets/style/homepage.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ body .theme-hope-content:not(.custom) {

.grid2column {
display: grid;
grid-template-columns: 1fr 1fr
grid-template-columns: 1fr 1fr;
}

.grid3column {
Expand Down Expand Up @@ -191,7 +191,6 @@ body .theme-hope-content:not(.custom) {
flex-flow: row wrap;
}


.graphGuide {
background: radial-gradient(
50% 50% at 50% 50%,
Expand Down Expand Up @@ -252,12 +251,11 @@ iframe {
}
}


@media screen and (max-width: 768px) {
@media screen and (max-width: 768px) {
.welcomeContainer {
padding: 0 20px;
}

.banner {
padding: 80px 0;
}
Expand All @@ -282,14 +280,14 @@ iframe {
position: absolute;
transform: translate(-50%, -50%);
z-index: 0;
opacity: .5;
opacity: 0.5;
}

.bannerRow .bannerImage img {
width: 100vw;
}

.bannerRow .bannerImageBg {
display: none;;
display: none;
}
}
9 changes: 6 additions & 3 deletions docs/.vuepress/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
// place your custom styles here
@font-face {
font-family: "Inter";
src: local("Inter-Regular"),
src:
local("Inter-Regular"),
url("https://static.subquery.network/design/fonts/Inter-Regular.ttf")
format("truetype");
font-display: swap;
}

@font-face {
font-family: "Inter-SemiBold";
src: local("Inter-SemiBold"),
src:
local("Inter-SemiBold"),
url("https://static.subquery.network/design/fonts/Inter-SemiBold.ttf")
format("truetype");
font-display: swap;
}

@font-face {
font-family: "Inter-Bold";
src: local("Inter-Bold"),
src:
local("Inter-Bold"),
url("https://static.subquery.network/design/fonts/Inter-Bold.ttf")
format("truetype");
font-display: swap;
Expand Down
2 changes: 1 addition & 1 deletion docs/indexer/build/graph-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ export async function handleNewGravatar(log: NewGravatarLog): Promise<void> {
}
export async function handleUpdatedGravatar(
log: UpdatedGravatarLog
log: UpdatedGravatarLog,
): Promise<void> {
const id: string = log.args.id.toHexString()!;
let gravatar = await Gravatar.get(id);
Expand Down
6 changes: 3 additions & 3 deletions docs/indexer/build/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ import {
} from "../types/abi-interfaces/Gravity";

export async function handleNewGravatarGravityLog(
log: NewGravatarLog
log: NewGravatarLog,
): Promise<void> {
// Place your code logic here
}

export async function handleUpdatedGravatarGravityLog(
log: UpdatedGravatarLog
log: UpdatedGravatarLog,
): Promise<void> {
// Place your code logic here
}
Expand Down Expand Up @@ -398,7 +398,7 @@ import { CosmosMessage } from "@subql/types-cosmos";
import { MsgSwapExactAmountIn } from "../types/proto-interfaces/osmosis/gamm/v1beta1/tx";

export async function handleMessage(
msg: CosmosMessage<MsgSwapExactAmountIn>
msg: CosmosMessage<MsgSwapExactAmountIn>,
): Promise<void> {
// Do something with typed event
const messagePayload: MsgSwapExactAmountIn = msg.msg.decodedMsg;
Expand Down
6 changes: 3 additions & 3 deletions docs/indexer/build/manifest/algorand.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ Public nodes may be rate limited which can affect indexing speed, when developin

### Runner Query Spec

| Field | Type | Description |
| ----------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **name** | String | `@subql/query` and `@subql/query-subgraph` |
| Field | Type | Description |
| ----------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **name** | String | `@subql/query` and `@subql/query-subgraph` |
| **version** | String | Version of the Query service, available `@subql/query` [versions](https://github.com/subquery/subql/blob/main/packages/query/CHANGELOG.md) and `@subql/query-subgraph` [versions](https://github.com/subquery/query-subgraph/blob/main/CHANGELOG.md), it also must follow the SEMVER rules or `latest`. |

### Runner Node Options
Expand Down
7 changes: 3 additions & 4 deletions docs/indexer/build/manifest/arbitrum.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ There is only a dictionary for Arbitrum One `https://gx.api.subquery.network/sq/

### Runner Query Spec

| Field | Type | Description |
| ----------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **name** | String | `@subql/query` and `@subql/query-subgraph` |
| Field | Type | Description |
| ----------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **name** | String | `@subql/query` and `@subql/query-subgraph` |
| **version** | String | Version of the Query service, available `@subql/query` [versions](https://github.com/subquery/subql/blob/main/packages/query/CHANGELOG.md) and `@subql/query-subgraph` [versions](https://github.com/subquery/query-subgraph/blob/main/CHANGELOG.md), it also must follow the SEMVER rules or `latest`. |

### Runner Node Options
Expand Down Expand Up @@ -343,7 +343,6 @@ This allows you to set specific options relevant to each specific RPC endpoint t

Here is an example of how to set an API key in the header of RPC requests in your endpoint config.


```ts
{
network: {
Expand Down
6 changes: 3 additions & 3 deletions docs/indexer/build/manifest/avalanche.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ Public nodes may be rate limited which can affect indexing speed, when developin

### Runner Query Spec

| Field | Type | Description |
| ----------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **name** | String | `@subql/query` and `@subql/query-subgraph` |
| Field | Type | Description |
| ----------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **name** | String | `@subql/query` and `@subql/query-subgraph` |
| **version** | String | Version of the Query service, available `@subql/query` [versions](https://github.com/subquery/subql/blob/main/packages/query/CHANGELOG.md) and `@subql/query-subgraph` [versions](https://github.com/subquery/query-subgraph/blob/main/CHANGELOG.md), it also must follow the SEMVER rules or `latest`. |

### Runner Node Options
Expand Down
6 changes: 3 additions & 3 deletions docs/indexer/build/manifest/bsc.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ Public nodes may be rate limited which can affect indexing speed, when developin

### Runner Query Spec

| Field | Type | Description |
| ----------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **name** | String | `@subql/query` and `@subql/query-subgraph` |
| Field | Type | Description |
| ----------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **name** | String | `@subql/query` and `@subql/query-subgraph` |
| **version** | String | Version of the Query service, available `@subql/query` [versions](https://github.com/subquery/subql/blob/main/packages/query/CHANGELOG.md) and `@subql/query-subgraph` [versions](https://github.com/subquery/query-subgraph/blob/main/CHANGELOG.md), it also must follow the SEMVER rules or `latest`. |

### Runner Node Options
Expand Down
6 changes: 3 additions & 3 deletions docs/indexer/build/manifest/concordium.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ Public nodes may be rate limited which can affect indexing speed, when developin

### Runner Query Spec

| Field | Type | Description |
| ----------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **name** | String | `@subql/query` and `@subql/query-subgraph` |
| Field | Type | Description |
| ----------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **name** | String | `@subql/query` and `@subql/query-subgraph` |
| **version** | String | Version of the Query service, available `@subql/query` [versions](https://github.com/subquery/subql/blob/main/packages/query/CHANGELOG.md) and `@subql/query-subgraph` [versions](https://github.com/subquery/query-subgraph/blob/main/CHANGELOG.md), it also must follow the SEMVER rules or `latest`. |

### Runner Node Options
Expand Down
Loading

0 comments on commit 858d23c

Please sign in to comment.