repo_id stringclasses 16
values | file_path stringlengths 34 106 | content stringlengths 24 327k | __index_level_0__ int64 0 0 |
|---|---|---|---|
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/TextInput.vue | <script setup>
import { onMounted, ref } from 'vue';
defineProps({
modelValue: String,
});
defineEmits(['update:modelValue']);
const input = ref(null);
onMounted(() => {
if (input.value.hasAttribute('autofocus')) {
input.value.focus();
}
});
defineExpose({ focus: () => input.value.focus() });
<... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/InputLabel.vue | <script setup>
defineProps({
value: String,
});
</script>
<template>
<label class="block font-medium text-sm text-gray-700">
<span v-if="value">{{ value }}</span>
<span v-else><slot /></span>
</label>
</template>
| 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/ApplicationLogo.vue | <template>
<svg viewBox="0 0 317 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M74.09 30.04V13h-4.14v21H82.1v-3.96h-8.01zM95.379 19v1.77c-1.08-1.35-2.7-2.19-4.89-2.19-3.99 0-7.29 3.45-7.29 7.92s3.3 7.92 7.29 7.92c2.19 0 3.81-.84 4.89-2.19V34h3.87V19h-3.87zm-4.17 11.73c-2.37 0-4.14-1.71-4.14-4... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/ConfirmsPassword.vue | <script setup>
import { ref, reactive, nextTick } from 'vue';
import DialogModal from './DialogModal.vue';
import InputError from './InputError.vue';
import PrimaryButton from './PrimaryButton.vue';
import SecondaryButton from './SecondaryButton.vue';
import TextInput from './TextInput.vue';
const emit = defineEmits([... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/ActionMessage.vue | <script setup>
defineProps({
on: Boolean,
});
</script>
<template>
<div>
<transition leave-active-class="transition ease-in duration-1000" leave-from-class="opacity-100" leave-to-class="opacity-0">
<div v-show="on" class="text-sm text-gray-600">
<slot />
</div>
... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/AuthenticationCard.vue | <template>
<div class="min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100">
<div>
<slot name="logo" />
</div>
<div class="w-full sm:max-w-md mt-6 px-6 py-4 bg-white shadow-md overflow-hidden sm:rounded-lg">
<slot />
</div>
... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/DropdownLink.vue | <script setup>
import { Link } from '@inertiajs/vue3';
defineProps({
href: String,
as: String,
});
</script>
<template>
<div>
<button v-if="as == 'button'" type="submit" class="block w-full px-4 py-2 text-left text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 t... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/NavLink.vue | <script setup>
import { computed } from 'vue';
import { Link } from '@inertiajs/vue3';
const props = defineProps({
href: String,
active: Boolean,
});
const classes = computed(() => {
return props.active
? 'inline-flex items-center px-1 pt-1 border-b-2 border-indigo-400 text-sm font-medium leading-... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/PrimaryButton.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 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-gray-700 focu... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/ApplicationMark.vue | <template>
<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.395 44.428C4.557 40.198 0 32.632 0 24 0 10.745 10.745 0 24 0a23.891 23.891 0 0113.997 4.502c-.2 17.907-11.097 33.245-26.602 39.926z" fill="#6875F5" />
<path d="M14.134 45.885A23.914 23.914 0 0024 48c13.2... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/Dropdown.vue | <script setup>
import { computed, onMounted, onUnmounted, ref } from 'vue';
const props = defineProps({
align: {
type: String,
default: 'right',
},
width: {
type: String,
default: '48',
},
contentClasses: {
type: Array,
default: () => ['py-1', 'bg-whi... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/ResponsiveNavLink.vue | <script setup>
import { computed } from 'vue';
import { Link } from '@inertiajs/vue3';
const props = defineProps({
active: Boolean,
href: String,
as: String,
});
const classes = computed(() => {
return props.active
? 'block w-full pl-3 pr-4 py-2 border-l-4 border-indigo-400 text-left text-base... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/ActionSection.vue | <script setup>
import SectionTitle from './SectionTitle.vue';
</script>
<template>
<div class="md:grid md:grid-cols-3 md:gap-6">
<SectionTitle>
<template #title>
<slot name="title" />
</template>
<template #description>
<slot name="descrip... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/SectionTitle.vue | <template>
<div class="md:col-span-1 flex justify-between">
<div class="px-4 sm:px-0">
<h3 class="text-lg font-medium text-gray-900">
<slot name="title" />
</h3>
<p class="mt-1 text-sm text-gray-600">
<slot name="description" />
... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/DialogModal.vue | <script setup>
import Modal from './Modal.vue';
const emit = defineEmits(['close']);
defineProps({
show: {
type: Boolean,
default: false,
},
maxWidth: {
type: String,
default: '2xl',
},
closeable: {
type: Boolean,
default: true,
},
});
const clo... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/Welcome.vue | <script setup>
import ApplicationLogo from '@/Components/ApplicationLogo.vue';
</script>
<template>
<div>
<div class="p-6 lg:p-8 bg-white border-b border-gray-200">
<ApplicationLogo class="block h-12 w-auto" />
<h1 class="mt-8 text-2xl font-medium text-gray-900">
We... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/AuthenticationCardLogo.vue | <script setup>
import { Link } from '@inertiajs/vue3';
</script>
<template>
<Link :href="'/'">
<svg
class="w-16 h-16"
viewBox="0 0 48 48"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path d="M11.395 44.428C4.557 40.198 0 32.632 0 24 0... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/ConfirmationModal.vue | <script setup>
import Modal from './Modal.vue';
const emit = defineEmits(['close']);
defineProps({
show: {
type: Boolean,
default: false,
},
maxWidth: {
type: String,
default: '2xl',
},
closeable: {
type: Boolean,
default: true,
},
});
const clo... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/Modal.vue | <script setup>
import { computed, onMounted, onUnmounted, watch } from 'vue';
const props = defineProps({
show: {
type: Boolean,
default: false,
},
maxWidth: {
type: String,
default: '2xl',
},
closeable: {
type: Boolean,
default: true,
},
});
con... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/InputError.vue | <script setup>
defineProps({
message: String,
});
</script>
<template>
<div v-show="message">
<p class="text-sm text-red-600">
{{ message }}
</p>
</div>
</template>
| 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/Checkbox.vue | <script setup>
import { computed } from 'vue';
const emit = defineEmits(['update:checked']);
const props = defineProps({
checked: {
type: [Array, Boolean],
default: false,
},
value: {
type: String,
default: null,
},
});
const proxyChecked = computed({
get() {
... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/SecondaryButton.vue | <script setup>
defineProps({
type: {
type: String,
default: 'button',
},
});
</script>
<template>
<button :type="type" class="inline-flex items-center px-4 py-2 bg-white border border-gray-300 rounded-md font-semibold text-xs text-gray-700 uppercase tracking-widest shadow-sm hover:bg-gray-5... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/FormSection.vue | <script setup>
import { computed, useSlots } from 'vue';
import SectionTitle from './SectionTitle.vue';
defineEmits(['submitted']);
const hasActions = computed(() => !! useSlots().actions);
</script>
<template>
<div class="md:grid md:grid-cols-3 md:gap-6">
<SectionTitle>
<template #title>
... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Components/DangerButton.vue | <script setup>
defineProps({
type: {
type: String,
default: 'button',
},
});
</script>
<template>
<button :type="type" class="inline-flex items-center justify-center px-4 py-2 bg-red-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Layouts/AppLayout.vue | <script setup>
import { ref } from 'vue';
import { Head, Link, router } from '@inertiajs/vue3';
import ApplicationMark from '@/Components/ApplicationMark.vue';
import Banner from '@/Components/Banner.vue';
import Dropdown from '@/Components/Dropdown.vue';
import DropdownLink from '@/Components/DropdownLink.vue';
import... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Pages/Dashboard.vue | <script setup>
import AppLayout from '@/Layouts/AppLayout.vue';
import Welcome from '@/Components/Welcome.vue';
</script>
<template>
<AppLayout title="Dashboard">
<template #header>
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
Dashboard
</h2>
... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Pages/PrivacyPolicy.vue | <script setup>
import { Head } from '@inertiajs/vue3';
import AuthenticationCardLogo from '@/Components/AuthenticationCardLogo.vue';
defineProps({
policy: String,
});
</script>
<template>
<Head title="Privacy Policy" />
<div class="font-sans text-gray-900 antialiased">
<div class="pt-4 bg-gray-10... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Pages/Welcome4.vue | <template>
<button @click="reload">Reload page</button>
<Suspense>
<WithSuspense :time="2000">
<WithSuspense :time="1500" />
<WithSuspense :time="1200">
<WithSuspense :time="1000" />
<Suspense>
<WithSuspense :time="5000" />
<template #fallback>
<Place... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Pages/Welcome2.vue | <template>
<button @click="reload">Reload page</button>
<Suspense>
<WithSuspense :time="2000">
<WithSuspense :time="1500" />
<WithSuspense :time="1200">
<WithSuspense :time="1000" />
<WithSuspense :time="5000" />
</WithSuspense>
</WithSuspense>
<template #fallback>
... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Pages/TermsOfService.vue | <script setup>
import { Head } from '@inertiajs/vue3';
import AuthenticationCardLogo from '@/Components/AuthenticationCardLogo.vue';
defineProps({
terms: String,
});
</script>
<template>
<Head title="Terms of Service" />
<div class="font-sans text-gray-900 antialiased">
<div class="pt-4 bg-gray-1... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Pages/Welcome3.vue | <template>
<button @click="reload">Reload page</button>
<Suspense>
<WithSuspense :time="2000">
<WithSuspense :time="1500" />
<WithSuspense :time="1200">
<WithSuspense :time="1000" />
<!-- Nest a second Suspense -->
<Suspense>
<WithSuspense :time="5000" />
... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Pages/BeforeSuspense.vue | <template>
<div class="async-component" :class="!loading && 'loaded'">
<Spinner v-if="loading" />
<slot />
</div>
</template>
<script setup>
import { ref } from 'vue'
import Spinner from './Spinner.vue'
const loading = ref(true)
const { time } = defineProps({
time: {
type: Number,
default: 2000,... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Pages/WithSuspense.vue | <template>
<div class="async-component loaded">
<!-- We don't need a spinner here since loading is handled at the root -->
<slot />
</div>
</template>
<script setup>
const { time } = defineProps({
time: {
type: Number,
required: true,
},
})
console.log('Mounting ' + time)
// Add in a delay to... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Pages/Timer.vue | <template>
<Head title="Timer" />
<div class="flex min-h-screen flex-col items-center justify-center space-y-4">
<div class="flex items-center space-x-2 text-6xl">
<span>{{ displayMinutes }}</span>
<span class="mb-2">:</span>
<span>{{ displaySeconds }}</span>
</div>
<div class="grid gr... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Pages/Placeholder.vue | <template>
<div class="async-component fast-gradient">
<slot />
</div>
</template>
<script setup>
import Spinner from './Spinner.vue'
</script>
<style scoped>
.async-component {
border: 1px solid rgb(200, 200, 200);
border-radius: 10px;
background: rgba(255, 255, 255, 0.1);
padding: 32px;
margin: 20... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Pages/Welcome.vue | <template>
<button @click="reload">Reload page</button>
<BeforeSuspense :time="3000">
<BeforeSuspense :time="2000" />
<BeforeSuspense :time="1000">
<BeforeSuspense :time="500" />
<BeforeSuspense :time="4000" />
</BeforeSuspense>
</BeforeSuspense>
</template>
<script setup>
import BeforeSu... | 0 |
hf_public_repos/experiment/resources/js | hf_public_repos/experiment/resources/js/Pages/Spinner.vue | <template>
<div class="loader"></div>
</template>
<style scoped>
.loader,
.loader:after {
border-radius: 50%;
width: 5em;
height: 5em;
}
.loader {
width: 40px;
height: 40px;
}
.loader {
margin: 20px auto;
font-size: 10px;
position: relative;
text-indent: -9999em;
border-top: 1.1em solid rgba(255,... | 0 |
hf_public_repos/experiment/resources/js/Pages | hf_public_repos/experiment/resources/js/Pages/Auth/Login.vue | <script setup>
import { Head, Link, useForm } from '@inertiajs/vue3';
import AuthenticationCard from '@/Components/AuthenticationCard.vue';
import AuthenticationCardLogo from '@/Components/AuthenticationCardLogo.vue';
import Checkbox from '@/Components/Checkbox.vue';
import InputError from '@/Components/InputError.vue'... | 0 |
hf_public_repos/experiment/resources/js/Pages | hf_public_repos/experiment/resources/js/Pages/Auth/Register.vue | <script setup>
import { Head, Link, useForm } from '@inertiajs/vue3';
import AuthenticationCard from '@/Components/AuthenticationCard.vue';
import AuthenticationCardLogo from '@/Components/AuthenticationCardLogo.vue';
import Checkbox from '@/Components/Checkbox.vue';
import InputError from '@/Components/InputError.vue'... | 0 |
hf_public_repos/experiment/resources/js/Pages | hf_public_repos/experiment/resources/js/Pages/Auth/ResetPassword.vue | <script setup>
import { Head, useForm } from '@inertiajs/vue3';
import AuthenticationCard from '@/Components/AuthenticationCard.vue';
import AuthenticationCardLogo from '@/Components/AuthenticationCardLogo.vue';
import InputError from '@/Components/InputError.vue';
import InputLabel from '@/Components/InputLabel.vue';
... | 0 |
hf_public_repos/experiment/resources/js/Pages | hf_public_repos/experiment/resources/js/Pages/Auth/TwoFactorChallenge.vue | <script setup>
import { nextTick, ref } from 'vue';
import { Head, useForm } from '@inertiajs/vue3';
import AuthenticationCard from '@/Components/AuthenticationCard.vue';
import AuthenticationCardLogo from '@/Components/AuthenticationCardLogo.vue';
import InputError from '@/Components/InputError.vue';
import InputLabel... | 0 |
hf_public_repos/experiment/resources/js/Pages | hf_public_repos/experiment/resources/js/Pages/Auth/ConfirmPassword.vue | <script setup>
import { ref } from 'vue';
import { Head, useForm } from '@inertiajs/vue3';
import AuthenticationCard from '@/Components/AuthenticationCard.vue';
import AuthenticationCardLogo from '@/Components/AuthenticationCardLogo.vue';
import InputError from '@/Components/InputError.vue';
import InputLabel from '@/C... | 0 |
hf_public_repos/experiment/resources/js/Pages | hf_public_repos/experiment/resources/js/Pages/Auth/ForgotPassword.vue | <script setup>
import { Head, useForm } from '@inertiajs/vue3';
import AuthenticationCard from '@/Components/AuthenticationCard.vue';
import AuthenticationCardLogo from '@/Components/AuthenticationCardLogo.vue';
import InputError from '@/Components/InputError.vue';
import InputLabel from '@/Components/InputLabel.vue';
... | 0 |
hf_public_repos/experiment/resources/js/Pages | hf_public_repos/experiment/resources/js/Pages/Auth/VerifyEmail.vue | <script setup>
import { computed } from 'vue';
import { Head, Link, useForm } from '@inertiajs/vue3';
import AuthenticationCard from '@/Components/AuthenticationCard.vue';
import AuthenticationCardLogo from '@/Components/AuthenticationCardLogo.vue';
import PrimaryButton from '@/Components/PrimaryButton.vue';
const pro... | 0 |
hf_public_repos/experiment/resources/js/Pages | hf_public_repos/experiment/resources/js/Pages/Profile/Show.vue | <script setup>
import AppLayout from '@/Layouts/AppLayout.vue';
import DeleteUserForm from '@/Pages/Profile/Partials/DeleteUserForm.vue';
import LogoutOtherBrowserSessionsForm from '@/Pages/Profile/Partials/LogoutOtherBrowserSessionsForm.vue';
import SectionBorder from '@/Components/SectionBorder.vue';
import TwoFactor... | 0 |
hf_public_repos/experiment/resources/js/Pages/Profile | hf_public_repos/experiment/resources/js/Pages/Profile/Partials/DeleteUserForm.vue | <script setup>
import { ref } from 'vue';
import { useForm } from '@inertiajs/vue3';
import ActionSection from '@/Components/ActionSection.vue';
import DangerButton from '@/Components/DangerButton.vue';
import DialogModal from '@/Components/DialogModal.vue';
import InputError from '@/Components/InputError.vue';
import ... | 0 |
hf_public_repos/experiment/resources/js/Pages/Profile | hf_public_repos/experiment/resources/js/Pages/Profile/Partials/LogoutOtherBrowserSessionsForm.vue | <script setup>
import { ref } from 'vue';
import { useForm } from '@inertiajs/vue3';
import ActionMessage from '@/Components/ActionMessage.vue';
import ActionSection from '@/Components/ActionSection.vue';
import DialogModal from '@/Components/DialogModal.vue';
import InputError from '@/Components/InputError.vue';
impor... | 0 |
hf_public_repos/experiment/resources/js/Pages/Profile | hf_public_repos/experiment/resources/js/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue | <script setup>
import { ref, computed, watch } from 'vue';
import { router, useForm, usePage } from '@inertiajs/vue3';
import ActionSection from '@/Components/ActionSection.vue';
import ConfirmsPassword from '@/Components/ConfirmsPassword.vue';
import DangerButton from '@/Components/DangerButton.vue';
import InputError... | 0 |
hf_public_repos/experiment/resources/js/Pages/Profile | hf_public_repos/experiment/resources/js/Pages/Profile/Partials/UpdatePasswordForm.vue | <script setup>
import { ref } from 'vue';
import { useForm } from '@inertiajs/vue3';
import ActionMessage from '@/Components/ActionMessage.vue';
import FormSection from '@/Components/FormSection.vue';
import InputError from '@/Components/InputError.vue';
import InputLabel from '@/Components/InputLabel.vue';
import Prim... | 0 |
hf_public_repos/experiment/resources/js/Pages/Profile | hf_public_repos/experiment/resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue | <script setup>
import { ref } from 'vue';
import { Link, router, useForm } from '@inertiajs/vue3';
import ActionMessage from '@/Components/ActionMessage.vue';
import FormSection from '@/Components/FormSection.vue';
import InputError from '@/Components/InputError.vue';
import InputLabel from '@/Components/InputLabel.vue... | 0 |
hf_public_repos/experiment/resources/js/Pages | hf_public_repos/experiment/resources/js/Pages/Teams/Create.vue | <script setup>
import AppLayout from '@/Layouts/AppLayout.vue';
import CreateTeamForm from '@/Pages/Teams/Partials/CreateTeamForm.vue';
</script>
<template>
<AppLayout title="Create Team">
<template #header>
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
Create T... | 0 |
hf_public_repos/experiment/resources/js/Pages | hf_public_repos/experiment/resources/js/Pages/Teams/Show.vue | <script setup>
import AppLayout from '@/Layouts/AppLayout.vue';
import DeleteTeamForm from '@/Pages/Teams/Partials/DeleteTeamForm.vue';
import SectionBorder from '@/Components/SectionBorder.vue';
import TeamMemberManager from '@/Pages/Teams/Partials/TeamMemberManager.vue';
import UpdateTeamNameForm from '@/Pages/Teams/... | 0 |
hf_public_repos/experiment/resources/js/Pages/Teams | hf_public_repos/experiment/resources/js/Pages/Teams/Partials/CreateTeamForm.vue | <script setup>
import { useForm } from '@inertiajs/vue3';
import FormSection from '@/Components/FormSection.vue';
import InputError from '@/Components/InputError.vue';
import InputLabel from '@/Components/InputLabel.vue';
import PrimaryButton from '@/Components/PrimaryButton.vue';
import TextInput from '@/Components/Te... | 0 |
hf_public_repos/experiment/resources/js/Pages/Teams | hf_public_repos/experiment/resources/js/Pages/Teams/Partials/TeamMemberManager.vue | <script setup>
import { ref } from 'vue';
import { router, useForm, usePage } from '@inertiajs/vue3';
import ActionMessage from '@/Components/ActionMessage.vue';
import ActionSection from '@/Components/ActionSection.vue';
import ConfirmationModal from '@/Components/ConfirmationModal.vue';
import DangerButton from '@/Co... | 0 |
hf_public_repos/experiment/resources/js/Pages/Teams | hf_public_repos/experiment/resources/js/Pages/Teams/Partials/UpdateTeamNameForm.vue | <script setup>
import { useForm } from '@inertiajs/vue3';
import ActionMessage from '@/Components/ActionMessage.vue';
import FormSection from '@/Components/FormSection.vue';
import InputError from '@/Components/InputError.vue';
import InputLabel from '@/Components/InputLabel.vue';
import PrimaryButton from '@/Component... | 0 |
hf_public_repos/experiment/resources/js/Pages/Teams | hf_public_repos/experiment/resources/js/Pages/Teams/Partials/DeleteTeamForm.vue | <script setup>
import { ref } from 'vue';
import { useForm } from '@inertiajs/vue3';
import ActionSection from '@/Components/ActionSection.vue';
import ConfirmationModal from '@/Components/ConfirmationModal.vue';
import DangerButton from '@/Components/DangerButton.vue';
import SecondaryButton from '@/Components/Seconda... | 0 |
hf_public_repos/experiment/resources/js/Pages | hf_public_repos/experiment/resources/js/Pages/API/Index.vue | <script setup>
import ApiTokenManager from '@/Pages/API/Partials/ApiTokenManager.vue';
import AppLayout from '@/Layouts/AppLayout.vue';
defineProps({
tokens: Array,
availablePermissions: Array,
defaultPermissions: Array,
});
</script>
<template>
<AppLayout title="API Tokens">
<template #header... | 0 |
hf_public_repos/experiment/resources/js/Pages/API | hf_public_repos/experiment/resources/js/Pages/API/Partials/ApiTokenManager.vue | <script setup>
import { ref } from 'vue';
import { useForm } from '@inertiajs/vue3';
import ActionMessage from '@/Components/ActionMessage.vue';
import ActionSection from '@/Components/ActionSection.vue';
import Checkbox from '@/Components/Checkbox.vue';
import ConfirmationModal from '@/Components/ConfirmationModal.vue... | 0 |
hf_public_repos/experiment/resources | hf_public_repos/experiment/resources/markdown/terms.md | # Terms of Service
Edit this file to define the terms of service for your application.
| 0 |
hf_public_repos/experiment/resources | hf_public_repos/experiment/resources/markdown/policy.md | # Privacy Policy
Edit this file to define the privacy policy for your application.
| 0 |
hf_public_repos/experiment/resources | hf_public_repos/experiment/resources/views/welcome.blade.php | <!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;60... | 0 |
hf_public_repos/experiment/resources | hf_public_repos/experiment/resources/views/livewire.blade.php | <!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=figtree:400,50... | 0 |
hf_public_repos/experiment/resources | hf_public_repos/experiment/resources/views/app.blade.php | <!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title inertia>{{ config('app.name', 'Laravel') }}</title>
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">... | 0 |
hf_public_repos/experiment/resources/views | hf_public_repos/experiment/resources/views/emails/team-invitation.blade.php | @component('mail::message')
{{ __('You have been invited to join the :team team!', ['team' => $invitation->team->name]) }}
@if (Laravel\Fortify\Features::enabled(Laravel\Fortify\Features::registration()))
{{ __('If you do not have an account, you may create one by clicking the button below. After creating an account, ... | 0 |
hf_public_repos/experiment/resources/views | hf_public_repos/experiment/resources/views/livewire/counter.blade.php | <div style="text-align: center">
<button wire:click="increment">+</button>
<h1>{{ $count }}</h1>
</div>
| 0 |
hf_public_repos/experiment | hf_public_repos/experiment/tests/CreatesApplication.php | <?php
namespace Tests;
use Illuminate\Contracts\Console\Kernel;
use Illuminate\Foundation\Application;
trait CreatesApplication
{
/**
* Creates the application.
*/
public function createApplication(): Application
{
$app = require __DIR__.'/../bootstrap/app.php';
$app->make(Kern... | 0 |
hf_public_repos/experiment | hf_public_repos/experiment/tests/TestCase.php | <?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
}
| 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Unit/ExampleTest.php | <?php
namespace Tests\Unit;
use PHPUnit\Framework\TestCase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*/
public function test_that_true_is_true(): void
{
$this->assertTrue(true);
}
}
| 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/PasswordConfirmationTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Laravel\Jetstream\Features;
use Tests\TestCase;
class PasswordConfirmationTest extends TestCase
{
use RefreshDatabase;
public function test_confirm_password_screen_can_be_rendered(): void
{
... | 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/EmailVerificationTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use App\Providers\RouteServiceProvider;
use Illuminate\Auth\Events\Verified;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\URL;
use Laravel\Fortify\Features;
use Tests\TestCase;
class EmailVe... | 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/RegistrationTest.php | <?php
namespace Tests\Feature;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Laravel\Fortify\Features;
use Laravel\Jetstream\Jetstream;
use Tests\TestCase;
class RegistrationTest extends TestCase
{
use RefreshDatabase;
public function test_registration_screen... | 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/ExampleTest.php | <?php
namespace Tests\Feature;
// use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*/
public function test_the_application_returns_a_successful_response(): void
{
$response = $this->get('/');
... | 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/TwoFactorAuthenticationSettingsTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Laravel\Fortify\Features;
use Tests\TestCase;
class TwoFactorAuthenticationSettingsTest extends TestCase
{
use RefreshDatabase;
public function test_two_factor_authentication_can_be_enabled(): void
... | 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/BrowserSessionsTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class BrowserSessionsTest extends TestCase
{
use RefreshDatabase;
public function test_other_browser_sessions_can_be_logged_out(): void
{
$this->actingAs($user = User::facto... | 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/UpdateTeamMemberRoleTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class UpdateTeamMemberRoleTest extends TestCase
{
use RefreshDatabase;
public function test_team_member_roles_can_be_updated(): void
{
$this->actingAs($user = User::factory(... | 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/DeleteAccountTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Laravel\Jetstream\Features;
use Tests\TestCase;
class DeleteAccountTest extends TestCase
{
use RefreshDatabase;
public function test_user_accounts_can_be_deleted(): void
{
if (! Features::h... | 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/InviteTeamMemberTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Mail;
use Laravel\Jetstream\Features;
use Laravel\Jetstream\Mail\TeamInvitation;
use Tests\TestCase;
class InviteTeamMemberTest extends TestCase
{
use RefreshDatabase;
public... | 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/DeleteTeamTest.php | <?php
namespace Tests\Feature;
use App\Models\Team;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class DeleteTeamTest extends TestCase
{
use RefreshDatabase;
public function test_teams_can_be_deleted(): void
{
$this->actingAs($user = User::factory()... | 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/CreateTeamTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class CreateTeamTest extends TestCase
{
use RefreshDatabase;
public function test_teams_can_be_created(): void
{
$this->actingAs($user = User::factory()->withPersonalTeam()-... | 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/UpdateTeamNameTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class UpdateTeamNameTest extends TestCase
{
use RefreshDatabase;
public function test_team_names_can_be_updated(): void
{
$this->actingAs($user = User::factory()->withPerson... | 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/UpdatePasswordTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Hash;
use Tests\TestCase;
class UpdatePasswordTest extends TestCase
{
use RefreshDatabase;
public function test_password_can_be_updated(): void
{
$this->actingAs(... | 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/AuthenticationTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AuthenticationTest extends TestCase
{
use RefreshDatabase;
public function test_login_screen_can_be_rendered(): void
{
$respons... | 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/LeaveTeamTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class LeaveTeamTest extends TestCase
{
use RefreshDatabase;
public function test_users_can_leave_teams(): void
{
$user = User::factory()->withPersonalTeam()->create();
... | 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/ApiTokenPermissionsTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Str;
use Laravel\Jetstream\Features;
use Tests\TestCase;
class ApiTokenPermissionsTest extends TestCase
{
use RefreshDatabase;
public function test_api_token_permissions_can_be_updat... | 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/DeleteApiTokenTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Str;
use Laravel\Jetstream\Features;
use Tests\TestCase;
class DeleteApiTokenTest extends TestCase
{
use RefreshDatabase;
public function test_api_tokens_can_be_deleted(): void
{... | 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/RemoveTeamMemberTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class RemoveTeamMemberTest extends TestCase
{
use RefreshDatabase;
public function test_team_members_can_be_removed_from_teams(): void
{
$this->actingAs($user = User::factor... | 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/CreateApiTokenTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Laravel\Jetstream\Features;
use Tests\TestCase;
class CreateApiTokenTest extends TestCase
{
use RefreshDatabase;
public function test_api_tokens_can_be_created(): void
{
if (! Features::has... | 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/ProfileInformationTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class ProfileInformationTest extends TestCase
{
use RefreshDatabase;
public function test_profile_information_can_be_updated(): void
{
$this->actingAs($user = User::factory(... | 0 |
hf_public_repos/experiment/tests | hf_public_repos/experiment/tests/Feature/PasswordResetTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Auth\Notifications\ResetPassword;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Notification;
use Laravel\Fortify\Features;
use Tests\TestCase;
class PasswordResetTest extends TestCase
{
use RefreshDatabase;
... | 0 |
hf_public_repos/experiment | hf_public_repos/experiment/public/index.php | <?php
use Illuminate\Contracts\Http\Kernel;
use Illuminate\Http\Request;
define('LARAVEL_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Check If The Application Is Under Maintenance
|--------------------------------------------------------------------------... | 0 |
hf_public_repos/experiment | hf_public_repos/experiment/public/robots.txt | User-agent: *
Disallow:
| 0 |
hf_public_repos/experiment | hf_public_repos/experiment/public/.htaccess | <IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Fold... | 0 |
hf_public_repos/experiment | hf_public_repos/experiment/routes/channels.php | <?php
use Illuminate\Support\Facades\Broadcast;
/*
|--------------------------------------------------------------------------
| Broadcast Channels
|--------------------------------------------------------------------------
|
| Here you may register all of the event broadcasting channels that your
| application suppo... | 0 |
hf_public_repos/experiment | hf_public_repos/experiment/routes/console.php | <?php
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based... | 0 |
hf_public_repos/experiment | hf_public_repos/experiment/routes/web.php | <?php
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;
Route::get('/', function () {
return Inertia::render('Welcome');
});
Route::view('livewire', 'livewire');
Route::get('/sms', function () {
Log::info('SMS received');
return 'hit';
});
Route::post('/sms... | 0 |
hf_public_repos/experiment | hf_public_repos/experiment/routes/api.php | <?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Str;
use Spatie\PdfToImage\Pdf;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you ... | 0 |
hf_public_repos | hf_public_repos/Advent_of_Code/decimal.in | 1
2
3
4
5
6
7
8
9
10
15
20
2022
12345
314159265 | 0 |
hf_public_repos | hf_public_repos/Advent_of_Code/example.in | 1=-0-2
12111
2=0=
21
2=01
111
20012
112
1=-1=
1-12
12
1=
122 | 0 |
hf_public_repos/Advent_of_Code | hf_public_repos/Advent_of_Code/2022/2_me.py | X = [l.strip() for l in open("2.in")]
total = 0
for x in X:
op, me = x.split()
p = {"X": 1, "Y": 2, "Z": 3}[me]
p += {
("A", "X"): 3,
("A", "Y"): 6,
("A", "Z"): 0,
("B", "X"): 0,
("B", "Y"): 3,
("B", "Z"): 6,
("C", "X"): 6,
("C", "Y"): 0,
... | 0 |
hf_public_repos/Advent_of_Code | hf_public_repos/Advent_of_Code/2022/2.in | C X
B Y
C Z
C Z
B X
C Z
C Z
C Z
B X
B Y
B Z
B Z
B Z
C X
C Y
B Y
C Z
C Y
C X
B Y
C Y
C Z
A Y
B Y
C X
C X
C Y
B Y
B X
C Z
B Y
B Z
C Y
A X
B Y
B X
B Y
B X
C Z
B Y
C Y
A Z
B Y
C Z
A Z
B Y
B Y
B Y
C Y
B Y
A X
C Z
C X
C Z
A Y
C X
C Z
C Y
C Y
A Y
C Z
B Y
B Z
A X
C Z
B Y
C X
B X
C Z
C Z
B Y
C Z
A Z
C X
C Y
B X
C X
C Z
B Z
B Z
... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.