Skip to content
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
6 changes: 3 additions & 3 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Laravel

on:
push:
branches: [ 2.x, 3.x ]
branches: [ 4.x ]
pull_request:
branches: [ 2.x, 3.x ]
branches: [ 4.x ]

jobs:
laravel:
Expand All @@ -21,7 +21,7 @@ jobs:
coverage: xdebug #optional
- uses: getong/mariadb-action@v1.1
with:
host port: 3308 # Optional, default value is 3306. The port of host
#host port: 3308 # Optional, default value is 3306. The port of host
mariadb version: '10.7' # Optional, default value is "latest". The version of the MariaDB
mysql database: 'testbench' # Optional, default value is "test". The specified database which will be create
mysql user: 'default' # Required if "mysql root password" is empty, default is empty. The superuser for the specified database. Can use secrets, too
Expand Down
6 changes: 6 additions & 0 deletions config/web.images.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

return [
'logo' => env('LOGO_PATH', 'img/seat_plus.svg'),
'icon' => env('ICON_PATH', 'img/seat_plus_logo.svg'),
];
64 changes: 34 additions & 30 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,32 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<coverage>
<report>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<testsuites>
<testsuite name="Package Test Suite">
<directory suffix="Test.php">./tests/</directory>
</testsuite>
</testsuites>
<php>
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
<env name="APP_ENV" value="testing"/>
<env name="REDIS_HOST" value="redis"/>
<env name="REDIS_PASSWORD" value="null"/>
<env name="REDIS_PORT" value="6379"/>
<env name="DB_CONNECTION" value="mysql"/>
<env name="DB_HOST" value="127.0.0.1"/>
<env name="DB_PORT" value="3308"/>
<env name="DB_DATABASE" value="testbench"/>
<env name="DB_USERNAME" value="default"/>
<env name="DB_PASSWORD" value="secret"/>
</php>
<logging/>
<source>
<include>
<directory suffix=".php">./src/</directory>
</include>
</source>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="Seatplus Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<php>
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
<env name="REDIS_CLIENT" value="phpredis"/>
<env name="REDIS_HOST" value="127.0.0.1"/>
<env name="REDIS_PASSWORD" value="null"/>
<env name="REDIS_PORT" value="6379"/>
<env name="DB_CONNECTION" value="mysql" />
<env name="DB_HOST" value="127.0.0.1"/>
<env name="DB_PORT" value="3306"/>
<env name="DB_DATABASE" value="testbench"/>
<env name="DB_USERNAME" value="default"/>
<env name="DB_PASSWORD" value="secret"/>
</php>
<coverage>
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>
10 changes: 1 addition & 9 deletions resources/js/Pages/AccessControl/ControlGroupsIndex.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<template>
<div class="space-y-3">
<teleport to="#head">
<title>{{ title(pageTitle) }}</title>
</teleport>
<PageHeader>
{{ pageTitle }}
<PageHeader :page-title="pageTitle">
<template #primary>
<CreateGroupButton />
</template>
Expand Down Expand Up @@ -41,7 +37,3 @@ export default {
}
}
</script>

<style scoped>

</style>
8 changes: 2 additions & 6 deletions resources/js/Pages/AccessControl/ManageControlGroup.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<template>
<div class="space-y-3">
<teleport to="#head">
<title>{{ title(pageTitle) }}</title>
</teleport>
<PageHeader :breadcrumbs="breadcrumbs">
{{ pageTitle }}
<PageHeader :page-title="pageTitle" :breadcrumbs="breadcrumbs">
<template #primary>
<HeaderButton @click="store">
Save
Expand Down Expand Up @@ -246,7 +242,7 @@ export default {
},
data() {
return {
pageTitle: `Manage ${this.role.name}`,
pageTitle: `Manage ${this.role.title}`,
breadcrumbs: [
{
name: 'Control Group',
Expand Down
7 changes: 1 addition & 6 deletions resources/js/Pages/AccessControl/ModerateMembers.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
<template>
<div class="space-y-4">
<teleport to="#head">
<title>{{ title(pageTitle) }}</title>
</teleport>
<PageHeader :breadcrumbs="breadcrumbs">
{{ pageTitle }}
</PageHeader>
<PageHeader :page-title="pageTitle" :breadcrumbs="breadcrumbs" />
<div class="bg-white overflow-hidden shadow rounded-lg">
<!--Header-->
<div class="border-b border-gray-200 px-4 py-5 sm:px-6">
Expand Down
27 changes: 3 additions & 24 deletions resources/js/Pages/Auth/Login.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<template>
<div>
<teleport to="#head">
<title>{{ title('Login') }}</title>
</teleport>
<AppHead app-title="Login" />
<div class="sm:mx-auto sm:w-full sm:max-w-md">
<div>
<img
Expand Down Expand Up @@ -41,35 +39,16 @@
</div>
</div>
</div>
<!--<div class="login-page" style="min-height: 512.8px;">
<div class="login-box">
<flash-messages/>
<div class="login-logo">
<b>SeAT</b>plus
</div>
&lt;!&ndash; /.login-logo &ndash;&gt;
<div class="card">

<div class="card-body login-card-body">
{{ $page.login_welcome }}
<div class="social-auth-links text-center mb-3">
<a :href="route('auth.eve')">
<b-img :src="$page.evesso_img_src" fluid />
</a>
</div>
</div>
&lt;!&ndash; /.login-card-body &ndash;&gt;
</div>
</div>
</div>-->
</template>

<script>

import EmptyLayout from "@/Shared/Layout/AuthLayout/EmptyLayout.vue";
import AppHead from "@/Shared/AppHead.vue";

export default {
name: "Login",
components: {AppHead},
layout: (h, page) => h(EmptyLayout, [page]),

}
Expand Down
7 changes: 3 additions & 4 deletions resources/js/Pages/Auth/MissingRequiredScopes.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<template>
<div>
<teleport to="#head">
<title>{{ title('Missing Characters Esi Scopes') }}</title>
</teleport>
<AppHead app-title="Missing Characters Esi Scopes" />
<div class="sm:mx-auto sm:w-full sm:max-w-md">
<h2 class="mt-6 text-center text-3xl leading-9 font-extrabold text-gray-900">
{{ $I18n.trans('web::missing_required_scopes.title') }}
Expand Down Expand Up @@ -86,9 +84,10 @@
import EveImage from "@/Shared/EveImage.vue"
import ImpersonatingBanner from "@/Shared/SidebarLayout/ImpersonatingBanner.vue";
import EmptyLayout from "@/Shared/Layout/AuthLayout/EmptyLayout.vue";
import AppHead from "@/Shared/AppHead.vue";
export default {
name: "MissingRequiredScopes",
components: {ImpersonatingBanner, EveImage},
components: {AppHead, ImpersonatingBanner, EveImage},
layout: (h, page) => h(EmptyLayout, [page]),
props: {
characters: {
Expand Down
7 changes: 1 addition & 6 deletions resources/js/Pages/Character/Assets.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
<template>
<div class="space-y-3">
<teleport to="#head">
<title>{{ title(pageTitle) }}</title>
</teleport>

<RequiredScopesWarning :dispatch-transfer-object="dispatchTransferObject" />

<PageHeader>
{{ pageTitle }}
<PageHeader :page-title="pageTitle">
<template #primary>
<DispatchUpdateButton />
</template>
Expand Down
7 changes: 1 addition & 6 deletions resources/js/Pages/Character/Contact/Index.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
<template>
<div class="space-y-3">
<teleport to="#head">
<title>{{ title(pageTitle) }}</title>
</teleport>

<RequiredScopesWarning :dispatch-transfer-object="dispatchTransferObject" />

<PageHeader>
{{ pageTitle }}
<PageHeader :page-title="pageTitle">
<template #primary>
<DispatchUpdateButton />
</template>
Expand Down
8 changes: 1 addition & 7 deletions resources/js/Pages/Character/Contract/ContractDetails.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
<template>
<div class="space-y-3">
<teleport to="#head">
<title>{{ title(pageTitle) }}</title>
</teleport>

<PageHeader :breadcrumbs="breadcrumbs">
Contract Details
</PageHeader>
<PageHeader :page-title="pageTitle" :breadcrumbs="breadcrumbs" />

<ContractDetailsComponent
v-if="contract.items.length > 0"
Expand Down
7 changes: 1 addition & 6 deletions resources/js/Pages/Character/Contract/Index.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
<template>
<div class="space-y-3">
<teleport to="#head">
<title>{{ title(pageTitle) }}</title>
</teleport>

<RequiredScopesWarning :dispatch-transfer-object="dispatchTransferObject" />

<PageHeader>
{{ pageTitle }}
<PageHeader :page-title="pageTitle">
<template #primary>
<DispatchUpdateButton />
</template>
Expand Down
7 changes: 3 additions & 4 deletions resources/js/Pages/Character/ItemDetails.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<template>
<div>
<teleport to="#head">
<title>{{ title(object.name) }}</title>
</teleport>
<AppHead :app-title="object.name" />
<PageHeader :breadcrumbs="breadcrumbs">
<div class="flex items-center">
<div class="shrink-0">
Expand All @@ -29,10 +27,11 @@ import EveImage from "@/Shared/EveImage.vue"
import PageHeader from "@/Shared/Layout/PageHeader.vue";
import ItemLayout from "@/Shared/Components/ItemLayout.vue";
import { prefix } from "metric-prefix";
import AppHead from "@/Shared/AppHead.vue";

export default {
name: "ItemDetails",
components : {ItemLayout, PageHeader, EveImage},
components : {AppHead, ItemLayout, PageHeader, EveImage},
props: {
item: {
type : Object,
Expand Down
12 changes: 1 addition & 11 deletions resources/js/Pages/Character/Mail/Index.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
<template>
<MultiColumnLayout>
<teleport to="#head">
<title>{{ title(pageTitle) }}</title>
</teleport>
<div class="absolute inset-0 py-6 px-4 sm:px-6 lg:px-8">
<div class="space-y-3">
<RequiredScopesWarning :dispatch-transfer-object="dispatchTransferObject" />


<PageHeader class="">
{{ pageTitle }}
<PageHeader :page-title="pageTitle" class="">
<template #primary>
<DispatchUpdateButton />
</template>
Expand Down Expand Up @@ -39,12 +35,6 @@
v-model:selectedId="selectedId"
:character-ids="characterIds"
/>
<!-- <div class="absolute inset-0 py-6 px-4 sm:px-6 lg:px-8 overflow-y-auto">
<MailList
v-model:selectedId="selectedId"
:character-ids="characterIds"
/>
</div>-->
</template>
</MultiColumnLayout>
</template>
Expand Down
6 changes: 1 addition & 5 deletions resources/js/Pages/Character/Skill/Index.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
<template>
<div class="space-y-3">
<teleport to="#head">
<title>{{ title(pageTitle) }}</title>
</teleport>

<RequiredScopesWarning :dispatch-transfer-object="dispatchTransferObject" />

<PageHeader>
{{ pageTitle }}
<PageHeader :page-title="pageTitle">
<template #primary>
<DispatchUpdateButton />
</template>
Expand Down
7 changes: 1 addition & 6 deletions resources/js/Pages/Character/Wallet/Index.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
<template>
<div class="space-y-3">
<teleport to="#head">
<title>{{ title(pageTitle) }}</title>
</teleport>

<RequiredScopesWarning :dispatch-transfer-object="dispatchTransferObject" />

<PageHeader>
{{ pageTitle }}
<PageHeader :page-title="pageTitle">
<template #primary>
<DispatchUpdateButton />
</template>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
<template>
<div class="space-y-3">
<teleport to="#head">
<title>{{ title(pageTitle) }}</title>
</teleport>

<PageHeader>
{{ pageTitle }}
</PageHeader>
<PageHeader :page-title="pageTitle" />

<CompleteInertiaLoaderHelper
:key="infiniteId"
Expand Down
8 changes: 1 addition & 7 deletions resources/js/Pages/Configuration/Performance/Overview.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
<template>
<div class="space-y-3">
<teleport to="#head">
<title>{{ title(pageTitle) }}</title>
</teleport>

<PageHeader>
{{ pageTitle }}
</PageHeader>
<PageHeader :page-title="pageTitle" />

<CompleteInertiaLoaderHelper v-slot="{data}">
<Card>
Expand Down
Loading