Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix linter warnings #104

Merged
merged 3 commits into from
Jun 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
target-branch: 'develop'

- package-ecosystem: npm
directory: /
schedule:
interval: daily
target-branch: 'develop'
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test

on:
pull_request:
push:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install dependencies
run: npm install

- name: Lint
run: npm run lint

- name: Build
run: npm run build

- name: Generate
run: npm run generate


2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Torrust Index Frontend

[![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)

This repository serves as the frontend for the [Torrust Index](https://github.com/torrust/torrust-index) project.

It contains the [vue-3](https://vuejs.org/) frontend web application for the [Torrust Index](https://github.com/torrust/torrust-index).
Expand Down
1 change: 1 addition & 0 deletions components/Markdown.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<template>
<!-- eslint-disable vue/no-v-html -->
<div class="prose" v-html="sanitizedDescription" />
</template>

Expand Down
10 changes: 7 additions & 3 deletions components/form/FormInputText.vue
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
<template>
<div class="flex flex-col items-center">
<label class="label w-full">
<span class="label-text self-start">{{ props.label }}</span>
<label class="w-full label">
<span class="self-start label-text">{{ props.label }}</span>
</label>
<input
:type="props.type"
:placeholder="props.placeholder"
:value="modelValue"
class="input input-bordered border-2 rounded-2xl w-full"
class="w-full border-2 input input-bordered rounded-2xl"
:required="props.required"
@input="$emit('update:modelValue', $event.target.value)"
>
</div>
</template>

<script setup lang="ts">
import { defineProps, defineEmits } from "vue";

const emit = defineEmits(["update:modelValue"]);

const props = defineProps({
type: {
type: String,
Expand Down
3 changes: 1 addition & 2 deletions pages/torrents.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@
</template>

<script setup lang="ts">
import { useRuntimeConfig } from "nuxt/app";
import { useRuntimeConfig, useRoute, useRouter } from "nuxt/app";
import { TorrentCompact } from "torrust-index-types-lib";
import { Ref } from "vue";
import { useRoute, useRouter } from "#app";
import { computed, onMounted, ref, useTags, watch } from "#imports";
import { useCategories, useRestApi } from "~/composables/states";
import { TorrustSelectOption } from "~/components/TorrustSelect.vue";
Expand Down
1 change: 1 addition & 0 deletions project-words.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Nuxt
proxied