mirror of
https://gh.wpcy.net/https://github.com/fairpm/aspirecloud.git
synced 2026-06-20 02:22:28 +08:00
* feat: Changes required on existing files to setup Jetstream * feat: add the Inertia Home and Dashboard * feat: Add all required files and migrations to setup Jetstream * feat: Add the Sanctum middleware to the API endpoints - Added Sanctum to the API endpoints to requiere an API Key - Added a setting to control if the app should use authenticated API or not (see .env.example) - Fix redirection on API routes to the login page when a request was unauthenticated * feat: Users Management and Authication API Keys - Refactor existing tests to make authenticated request is enable - Hide the permissions setting on the UI, for now we only have a read-only API - Add tests to test authenticated and unauthenticated calls
14 lines
660 B
Vue
14 lines
660 B
Vue
<script setup>
|
|
defineProps({
|
|
type: {
|
|
type: String,
|
|
default: 'submit',
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<button :type="type" class="inline-flex items-center px-4 py-2 bg-gray-800 dark:bg-gray-200 border border-transparent rounded-md font-semibold text-xs text-white dark:text-gray-800 uppercase tracking-widest hover:bg-gray-700 dark:hover:bg-white focus:bg-gray-700 dark:focus:bg-white active:bg-gray-900 dark:active:bg-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800 disabled:opacity-50 transition ease-in-out duration-150">
|
|
<slot />
|
|
</button>
|
|
</template>
|