Skip to content

Commit 6bc3d04

Browse files
committed
Merge #104: Fix linter warnings
36eaf4a docs: add Test workflow status badge to README (Jose Celano) 9490653 ci: add test workflow and dependabot update config (Jose Celano) 9cfc5db fix: linter warnings (Jose Celano) Pull request description: Fix linter warnings. Top commit has no ACKs. Tree-SHA512: 090f6f794782a027405151350d6f4733925c0d1fe443e82f52febdad54166134e827ed876bbc3d92a74a5ad4e7eca3cf490aefe61721a8dd51e75d3f5546f78a
2 parents 1b31379 + 36eaf4a commit 6bc3d04

File tree

7 files changed

+51
-5
lines changed

7 files changed

+51
-5
lines changed

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: daily
7+
target-branch: 'develop'
8+
9+
- package-ecosystem: npm
10+
directory: /
11+
schedule:
12+
interval: daily
13+
target-branch: 'develop'

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
14+
- name: Install dependencies
15+
run: npm install
16+
17+
- name: Lint
18+
run: npm run lint
19+
20+
- name: Build
21+
run: npm run build
22+
23+
- name: Generate
24+
run: npm run generate
25+
26+

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Torrust Index Frontend
22

3+
[![Test](https://github.com/torrust/torrust-index-frontend/actions/workflows/test.yml/badge.svg)](https://github.com/torrust/torrust-index-frontend/actions/workflows/test.yml)
4+
35
This repository serves as the frontend for the [Torrust Index](https://github.com/torrust/torrust-index) project.
46

57
It contains the [vue-3](https://vuejs.org/) frontend web application for the [Torrust Index](https://github.com/torrust/torrust-index).

components/Markdown.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<template>
2+
<!-- eslint-disable vue/no-v-html -->
23
<div class="prose" v-html="sanitizedDescription" />
34
</template>
45

components/form/FormInputText.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
<template>
22
<div class="flex flex-col items-center">
3-
<label class="label w-full">
4-
<span class="label-text self-start">{{ props.label }}</span>
3+
<label class="w-full label">
4+
<span class="self-start label-text">{{ props.label }}</span>
55
</label>
66
<input
77
:type="props.type"
88
:placeholder="props.placeholder"
99
:value="modelValue"
10-
class="input input-bordered border-2 rounded-2xl w-full"
10+
class="w-full border-2 input input-bordered rounded-2xl"
1111
:required="props.required"
1212
@input="$emit('update:modelValue', $event.target.value)"
1313
>
1414
</div>
1515
</template>
1616

1717
<script setup lang="ts">
18+
import { defineProps, defineEmits } from "vue";
19+
20+
const emit = defineEmits(["update:modelValue"]);
21+
1822
const props = defineProps({
1923
type: {
2024
type: String,

pages/torrents.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,9 @@
6060
</template>
6161

6262
<script setup lang="ts">
63-
import { useRuntimeConfig } from "nuxt/app";
63+
import { useRuntimeConfig, useRoute, useRouter } from "nuxt/app";
6464
import { TorrentCompact } from "torrust-index-types-lib";
6565
import { Ref } from "vue";
66-
import { useRoute, useRouter } from "#app";
6766
import { computed, onMounted, ref, useTags, watch } from "#imports";
6867
import { useCategories, useRestApi } from "~/composables/states";
6968
import { TorrustSelectOption } from "~/components/TorrustSelect.vue";

project-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
Nuxt
2+
proxied

0 commit comments

Comments
 (0)