ui: Use $lib in imports
This commit is contained in:
parent
10d0a6a836
commit
d6f620bc0d
@ -1,5 +1,5 @@
|
|||||||
<script>
|
<script>
|
||||||
import { CorrectionTemplate } from '../lib/correctionTemplates';
|
import { CorrectionTemplate } from '$lib/correctionTemplates';
|
||||||
|
|
||||||
let className = '';
|
let className = '';
|
||||||
export { className as class };
|
export { className as class };
|
@ -1,6 +1,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import { user } from '../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import { autoCorrection } from '../lib/correctionTemplates';
|
import { autoCorrection } from '$lib/correctionTemplates';
|
||||||
|
|
||||||
export let cts = null;
|
export let cts = null;
|
||||||
export let rid = 0;
|
export let rid = 0;
|
@ -4,8 +4,8 @@
|
|||||||
import QuestionProposals from './QuestionProposals.svelte';
|
import QuestionProposals from './QuestionProposals.svelte';
|
||||||
import ResponseCorrected from './ResponseCorrected.svelte';
|
import ResponseCorrected from './ResponseCorrected.svelte';
|
||||||
import CorrectionResponseFooter from './CorrectionResponseFooter.svelte';
|
import CorrectionResponseFooter from './CorrectionResponseFooter.svelte';
|
||||||
import { autoCorrection } from '../lib/correctionTemplates';
|
import { autoCorrection } from '$lib/correctionTemplates';
|
||||||
import { getUser } from '../lib/users';
|
import { getUser } from '$lib/users';
|
||||||
|
|
||||||
export let cts = null;
|
export let cts = null;
|
||||||
export let filter = "";
|
export let filter = "";
|
@ -5,7 +5,7 @@
|
|||||||
import QuestionHeader from './QuestionHeader.svelte';
|
import QuestionHeader from './QuestionHeader.svelte';
|
||||||
import QuestionProposals from './QuestionProposals.svelte';
|
import QuestionProposals from './QuestionProposals.svelte';
|
||||||
import ResponseCorrected from './ResponseCorrected.svelte';
|
import ResponseCorrected from './ResponseCorrected.svelte';
|
||||||
import { user } from '../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { createEventDispatcher } from 'svelte';
|
import { createEventDispatcher } from 'svelte';
|
||||||
|
|
||||||
import { user } from '../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { createEventDispatcher } from 'svelte';
|
import { createEventDispatcher } from 'svelte';
|
||||||
|
|
||||||
import { QuestionProposal } from '../lib/questions';
|
import { QuestionProposal } from '$lib/questions';
|
||||||
|
|
||||||
export let edit = false;
|
export let edit = false;
|
||||||
export let proposals = [];
|
export let proposals = [];
|
@ -1,6 +1,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import { user } from '../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import { ToastsStore } from '../stores/toasts';
|
import { ToastsStore } from '$lib/stores/toasts';
|
||||||
|
|
||||||
export let response = null;
|
export let response = null;
|
||||||
export let survey = null;
|
export let survey = null;
|
@ -1,6 +1,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import { getSurveys } from '../lib/surveys';
|
import { getSurveys } from '$lib/surveys';
|
||||||
import { getUsers, getGrades, getPromos } from '../lib/users';
|
import { getUsers, getGrades, getPromos } from '$lib/users';
|
||||||
|
|
||||||
export let promo = null;
|
export let promo = null;
|
||||||
</script>
|
</script>
|
@ -1,8 +1,8 @@
|
|||||||
<script>
|
<script>
|
||||||
import { createEventDispatcher } from 'svelte';
|
import { createEventDispatcher } from 'svelte';
|
||||||
|
|
||||||
import DateFormat from '../components/DateFormat.svelte';
|
import DateFormat from '$lib/components/DateFormat.svelte';
|
||||||
import { getUserRendu } from '../lib/works';
|
import { getUserRendu } from '$lib/works';
|
||||||
|
|
||||||
let className = '';
|
let className = '';
|
||||||
export { className as class };
|
export { className as class };
|
@ -2,9 +2,9 @@
|
|||||||
import { createEventDispatcher } from 'svelte';
|
import { createEventDispatcher } from 'svelte';
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
|
|
||||||
import { getQuestions } from '../lib/questions';
|
import { getQuestions } from '$lib/questions';
|
||||||
import DateTimeInput from './DateTimeInput.svelte';
|
import DateTimeInput from './DateTimeInput.svelte';
|
||||||
import { ToastsStore } from '../stores/toasts';
|
import { ToastsStore } from '$lib/stores/toasts';
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
export let survey = null;
|
export let survey = null;
|
@ -1,12 +1,12 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
|
|
||||||
import { user } from '../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import DateFormat from '../components/DateFormat.svelte';
|
import DateFormat from '$lib/components/DateFormat.svelte';
|
||||||
import SurveyBadge from '../components/SurveyBadge.svelte';
|
import SurveyBadge from '$lib/components/SurveyBadge.svelte';
|
||||||
import SubmissionStatus from '../components/SubmissionStatus.svelte';
|
import SubmissionStatus from '$lib/components/SubmissionStatus.svelte';
|
||||||
import { getSurveys } from '../lib/surveys';
|
import { getSurveys } from '$lib/surveys';
|
||||||
import { getScore } from '../lib/users';
|
import { getScore } from '$lib/users';
|
||||||
|
|
||||||
export let allworks = false;
|
export let allworks = false;
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
<script>
|
<script>
|
||||||
import { user } from '../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import { ToastsStore } from '../stores/toasts';
|
import { ToastsStore } from '$lib/stores/toasts';
|
||||||
import QuestionForm from '../components/QuestionForm.svelte';
|
import QuestionForm from '$lib/components/QuestionForm.svelte';
|
||||||
import { Question } from '../lib/questions';
|
import { Question } from '$lib/questions';
|
||||||
|
|
||||||
export let survey = null;
|
export let survey = null;
|
||||||
export let id_user = null;
|
export let id_user = null;
|
@ -1,5 +1,5 @@
|
|||||||
<script>
|
<script>
|
||||||
import { ToastsStore } from '../stores/toasts';
|
import { ToastsStore } from '$lib/stores/toasts';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="toast-container position-fixed top-0 end-0 p-3">
|
<div class="toast-container position-fixed top-0 end-0 p-3">
|
@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { getKeys, getKey, Key } from '../lib/key';
|
import { getKeys, getKey, Key } from '$lib/key';
|
||||||
|
|
||||||
export let student = null;
|
export let student = null;
|
||||||
</script>
|
</script>
|
@ -1,8 +1,8 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
|
|
||||||
import { getSurveys } from '../lib/surveys';
|
import { getSurveys } from '$lib/surveys';
|
||||||
import { getUser, getUserGrade, getUserScore } from '../lib/users';
|
import { getUser, getUserGrade, getUserScore } from '$lib/users';
|
||||||
|
|
||||||
export let student = null;
|
export let student = null;
|
||||||
export let allPromos = false;
|
export let allPromos = false;
|
@ -1,6 +1,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import { user } from '../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import DateFormat from '../components/DateFormat.svelte';
|
import DateFormat from '$lib/components/DateFormat.svelte';
|
||||||
|
|
||||||
let className = '';
|
let className = '';
|
||||||
export { className as class };
|
export { className as class };
|
@ -3,7 +3,7 @@
|
|||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
|
|
||||||
import DateTimeInput from './DateTimeInput.svelte';
|
import DateTimeInput from './DateTimeInput.svelte';
|
||||||
import { ToastsStore } from '../stores/toasts';
|
import { ToastsStore } from '$lib/stores/toasts';
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
export let work = null;
|
export let work = null;
|
@ -1,10 +1,10 @@
|
|||||||
<script>
|
<script>
|
||||||
import { createEventDispatcher } from 'svelte';
|
import { createEventDispatcher } from 'svelte';
|
||||||
|
|
||||||
import BuildState from '../components/BuildState.svelte';
|
import BuildState from '$lib/components/BuildState.svelte';
|
||||||
import DateFormat from '../components/DateFormat.svelte';
|
import DateFormat from '$lib/components/DateFormat.svelte';
|
||||||
import { WorkRepository, getRemoteRepositories, getRepositories } from '../lib/repositories';
|
import { WorkRepository, getRemoteRepositories, getRepositories } from '$lib/repositories';
|
||||||
import { ToastsStore } from '../stores/toasts';
|
import { ToastsStore } from '$lib/stores/toasts';
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
<script context="module">
|
<script context="module">
|
||||||
import { user } from '../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
let stop_refresh = false;
|
let stop_refresh = false;
|
||||||
|
|
||||||
let refresh_interval_auth = null;
|
let refresh_interval_auth = null;
|
||||||
@ -42,8 +42,8 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AuthButton from '../components/AuthButton.svelte';
|
import AuthButton from '$lib/components/AuthButton.svelte';
|
||||||
import Toaster from '../components/Toaster.svelte';
|
import Toaster from '$lib/components/Toaster.svelte';
|
||||||
|
|
||||||
export let rroute = '';
|
export let rroute = '';
|
||||||
|
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
import { page } from '$app/stores'
|
import { page } from '$app/stores'
|
||||||
|
|
||||||
import AuthButton from '../components/AuthButton.svelte';
|
import AuthButton from '$lib/components/AuthButton.svelte';
|
||||||
import { ToastsStore } from '../stores/toasts';
|
import { ToastsStore } from '$lib/stores/toasts';
|
||||||
import { user } from '../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
|
|
||||||
let auth = { username: "", password: "" };
|
let auth = { username: "", password: "" };
|
||||||
let pleaseWait = false;
|
let pleaseWait = false;
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import StudentGrades from '../../components/StudentGrades.svelte';
|
import StudentGrades from '$lib/components/StudentGrades.svelte';
|
||||||
|
|
||||||
export let promo;
|
export let promo;
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script>
|
<script>
|
||||||
import StudentGrades from '../../components/StudentGrades.svelte';
|
import StudentGrades from '$lib/components/StudentGrades.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<StudentGrades />
|
<StudentGrades />
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import { user } from '../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import { ToastsStore } from '../stores/toasts';
|
import { ToastsStore } from '$lib/stores/toasts';
|
||||||
|
|
||||||
function needhelp() {
|
function needhelp() {
|
||||||
fetch('api/help', {
|
fetch('api/help', {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { user } from '../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import { getUser, getUserNeedingHelp } from '../lib/users';
|
import { getUser, getUserNeedingHelp } from '$lib/users';
|
||||||
import DateFormat from '../components/DateFormat.svelte';
|
import DateFormat from '$lib/components/DateFormat.svelte';
|
||||||
import SurveyList from '../components/SurveyList.svelte';
|
import SurveyList from '$lib/components/SurveyList.svelte';
|
||||||
import ValidateSubmissions from '../components/ValidateSubmissions.svelte';
|
import ValidateSubmissions from '$lib/components/ValidateSubmissions.svelte';
|
||||||
|
|
||||||
let direct = null;
|
let direct = null;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { deleteKey, getKeys, getKey, Key } from '../lib/key';
|
import { deleteKey, getKeys, getKey, Key } from '$lib/key';
|
||||||
import { user } from '../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import { ToastsStore } from '../stores/toasts';
|
import { ToastsStore } from '$lib/stores/toasts';
|
||||||
|
|
||||||
let keysP = getKeys();
|
let keysP = getKeys();
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script context="module">
|
<script context="module">
|
||||||
import { getSurvey } from '../../../lib/surveys';
|
import { getSurvey } from '$lib/surveys';
|
||||||
|
|
||||||
export async function load({ params, stuff }) {
|
export async function load({ params, stuff }) {
|
||||||
const survey = getSurvey(params.sid);
|
const survey = getSurvey(params.sid);
|
||||||
|
@ -10,16 +10,16 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { user } from '../../../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import CorrectionPieChart from '../../../components/CorrectionPieChart.svelte';
|
import CorrectionPieChart from '$lib/components/CorrectionPieChart.svelte';
|
||||||
import ListInputResponses from '../../../components/ListInputResponses.svelte';
|
import ListInputResponses from '$lib/components/ListInputResponses.svelte';
|
||||||
import QuestionForm from '../../../components/QuestionForm.svelte';
|
import QuestionForm from '$lib/components/QuestionForm.svelte';
|
||||||
import StartStopLiveSurvey from '../../../components/StartStopLiveSurvey.svelte';
|
import StartStopLiveSurvey from '$lib/components/StartStopLiveSurvey.svelte';
|
||||||
import SurveyAdmin from '../../../components/SurveyAdmin.svelte';
|
import SurveyAdmin from '$lib/components/SurveyAdmin.svelte';
|
||||||
import SurveyBadge from '../../../components/SurveyBadge.svelte';
|
import SurveyBadge from '$lib/components/SurveyBadge.svelte';
|
||||||
import { getSurvey } from '../../../lib/surveys';
|
import { getSurvey } from '$lib/surveys';
|
||||||
import { getQuestion, getQuestions, Question } from '../../../lib/questions';
|
import { getQuestion, getQuestions, Question } from '$lib/questions';
|
||||||
import { getUsers } from '../../../lib/users';
|
import { getUsers } from '$lib/users';
|
||||||
|
|
||||||
export let surveyP;
|
export let surveyP;
|
||||||
export let sid;
|
export let sid;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script context="module">
|
<script context="module">
|
||||||
import { getSurvey } from '../../../lib/surveys';
|
import { getSurvey } from '$lib/surveys';
|
||||||
|
|
||||||
export async function load({ params, stuff }) {
|
export async function load({ params, stuff }) {
|
||||||
return {
|
return {
|
||||||
@ -13,11 +13,11 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
|
|
||||||
import { user } from '../../../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import SurveyAdmin from '../../../components/SurveyAdmin.svelte';
|
import SurveyAdmin from '$lib/components/SurveyAdmin.svelte';
|
||||||
import SurveyBadge from '../../../components/SurveyBadge.svelte';
|
import SurveyBadge from '$lib/components/SurveyBadge.svelte';
|
||||||
import SurveyQuestions from '../../../components/SurveyQuestions.svelte';
|
import SurveyQuestions from '$lib/components/SurveyQuestions.svelte';
|
||||||
import { getQuestions } from '../../../lib/questions';
|
import { getQuestions } from '$lib/questions';
|
||||||
|
|
||||||
export let surveyP;
|
export let surveyP;
|
||||||
|
|
||||||
|
@ -12,11 +12,11 @@
|
|||||||
<script>
|
<script>
|
||||||
import { onDestroy } from 'svelte';
|
import { onDestroy } from 'svelte';
|
||||||
|
|
||||||
import { user } from '../../../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import { ToastsStore } from '../../../stores/toasts';
|
import { ToastsStore } from '$lib/stores/toasts';
|
||||||
import SurveyBadge from '../../../components/SurveyBadge.svelte';
|
import SurveyBadge from '$lib/components/SurveyBadge.svelte';
|
||||||
import QuestionForm from '../../../components/QuestionForm.svelte';
|
import QuestionForm from '$lib/components/QuestionForm.svelte';
|
||||||
import { getQuestion } from '../../../lib/questions';
|
import { getQuestion } from '$lib/questions';
|
||||||
|
|
||||||
export let surveyP;
|
export let surveyP;
|
||||||
export let sid;
|
export let sid;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script context="module">
|
<script context="module">
|
||||||
import { getSurvey } from '../../../../lib/surveys';
|
import { getSurvey } from '$lib/surveys';
|
||||||
|
|
||||||
export async function load({ params, stuff }) {
|
export async function load({ params, stuff }) {
|
||||||
return {
|
return {
|
||||||
@ -12,13 +12,13 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Correction from '../../../../components/Correction.svelte';
|
import Correction from '$lib/components/Correction.svelte';
|
||||||
import CorrectionPieChart from '../../../../components/CorrectionPieChart.svelte';
|
import CorrectionPieChart from '$lib/components/CorrectionPieChart.svelte';
|
||||||
import CorrectionReference from '../../../../components/CorrectionReference.svelte';
|
import CorrectionReference from '$lib/components/CorrectionReference.svelte';
|
||||||
import SurveyBadge from '../../../../components/SurveyBadge.svelte';
|
import SurveyBadge from '$lib/components/SurveyBadge.svelte';
|
||||||
import QuestionHeader from '../../../../components/QuestionHeader.svelte';
|
import QuestionHeader from '$lib/components/QuestionHeader.svelte';
|
||||||
import { getCorrectionTemplates } from '../../../../lib/correctionTemplates';
|
import { getCorrectionTemplates } from '$lib/correctionTemplates';
|
||||||
import { getQuestion } from '../../../../lib/questions';
|
import { getQuestion } from '$lib/questions';
|
||||||
|
|
||||||
export let surveyP;
|
export let surveyP;
|
||||||
export let rid;
|
export let rid;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script context="module">
|
<script context="module">
|
||||||
import { getSurvey } from '../../../../lib/surveys';
|
import { getSurvey } from '$lib/surveys';
|
||||||
import { getUsers } from '../../../../lib/users';
|
import { getUsers } from '$lib/users';
|
||||||
|
|
||||||
export async function load({ params, stuff }) {
|
export async function load({ params, stuff }) {
|
||||||
return {
|
return {
|
||||||
@ -14,12 +14,12 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
|
|
||||||
import { user } from '../../../../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import StartStopLiveSurvey from '../../../../components/StartStopLiveSurvey.svelte';
|
import StartStopLiveSurvey from '$lib/components/StartStopLiveSurvey.svelte';
|
||||||
import SurveyAdmin from '../../../../components/SurveyAdmin.svelte';
|
import SurveyAdmin from '$lib/components/SurveyAdmin.svelte';
|
||||||
import SurveyBadge from '../../../../components/SurveyBadge.svelte';
|
import SurveyBadge from '$lib/components/SurveyBadge.svelte';
|
||||||
import SurveyQuestions from '../../../../components/SurveyQuestions.svelte';
|
import SurveyQuestions from '$lib/components/SurveyQuestions.svelte';
|
||||||
import { getQuestions } from '../../../../lib/questions';
|
import { getQuestions } from '$lib/questions';
|
||||||
|
|
||||||
export let surveyP;
|
export let surveyP;
|
||||||
let usersP = null;
|
let usersP = null;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { user } from '../../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import SurveyList from '../../components/SurveyList.svelte';
|
import SurveyList from '$lib/components/SurveyList.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="card bg-light">
|
<div class="card bg-light">
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<script>
|
<script>
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
|
|
||||||
import { user } from '../../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import SurveyAdmin from '../../components/SurveyAdmin.svelte';
|
import SurveyAdmin from '$lib/components/SurveyAdmin.svelte';
|
||||||
import SurveyBadge from '../../components/SurveyBadge.svelte';
|
import SurveyBadge from '$lib/components/SurveyBadge.svelte';
|
||||||
import { Survey } from '../../lib/surveys';
|
import { Survey } from '$lib/surveys';
|
||||||
|
|
||||||
let survey = new Survey();
|
let survey = new Survey();
|
||||||
</script>
|
</script>
|
||||||
|
@ -9,11 +9,11 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import UserKeys from '../../../components/UserKeys.svelte';
|
import UserKeys from '$lib/components/UserKeys.svelte';
|
||||||
import UserSurveys from '../../../components/UserSurveys.svelte';
|
import UserSurveys from '$lib/components/UserSurveys.svelte';
|
||||||
import { user } from '../../../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import { getSurveys } from '../../../lib/surveys';
|
import { getSurveys } from '$lib/surveys';
|
||||||
import { getUser, getUserGrade, getUserScore } from '../../../lib/users';
|
import { getUser, getUserGrade, getUserScore } from '$lib/users';
|
||||||
|
|
||||||
export let uid;
|
export let uid;
|
||||||
|
|
||||||
|
@ -10,11 +10,11 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import SurveyBadge from '../../../../components/SurveyBadge.svelte';
|
import SurveyBadge from '$lib/components/SurveyBadge.svelte';
|
||||||
import SurveyQuestions from '../../../../components/SurveyQuestions.svelte';
|
import SurveyQuestions from '$lib/components/SurveyQuestions.svelte';
|
||||||
import { getSurvey } from '../../../../lib/surveys';
|
import { getSurvey } from '$lib/surveys';
|
||||||
import { getQuestions } from '../../../../lib/questions';
|
import { getQuestions } from '$lib/questions';
|
||||||
import { getUser } from '../../../../lib/users';
|
import { getUser } from '$lib/users';
|
||||||
|
|
||||||
export let sid;
|
export let sid;
|
||||||
export let uid;
|
export let uid;
|
||||||
|
@ -9,10 +9,10 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import UserSurveys from '../../../../components/UserSurveys.svelte';
|
import UserSurveys from '$lib/components/UserSurveys.svelte';
|
||||||
import { user } from '../../../../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import { getSurveys } from '../../../../lib/surveys';
|
import { getSurveys } from '$lib/surveys';
|
||||||
import { getUser, getUserGrade, getUserScore } from '../../../../lib/users';
|
import { getUser, getUserGrade, getUserScore } from '$lib/users';
|
||||||
|
|
||||||
export let uid;
|
export let uid;
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<script>
|
<script>
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
|
|
||||||
import { user } from '../../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import DateFormat from '../../components/DateFormat.svelte';
|
import DateFormat from '$lib/components/DateFormat.svelte';
|
||||||
import { getUsers, getPromos } from '../../lib/users';
|
import { getUsers, getPromos } from '$lib/users';
|
||||||
|
|
||||||
function showUser(user) {
|
function showUser(user) {
|
||||||
goto(`users/${user.id}`)
|
goto(`users/${user.id}`)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script context="module">
|
<script context="module">
|
||||||
import { getWork } from '../../../lib/works';
|
import { getWork } from '$lib/works';
|
||||||
|
|
||||||
export async function load({ params, stuff }) {
|
export async function load({ params, stuff }) {
|
||||||
const work = getWork(params.wid);
|
const work = getWork(params.wid);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script context="module">
|
<script context="module">
|
||||||
import { getWork } from '../../../lib/works';
|
import { getWork } from '$lib/works';
|
||||||
|
|
||||||
export async function load({ params, stuff }) {
|
export async function load({ params, stuff }) {
|
||||||
return {
|
return {
|
||||||
@ -13,13 +13,13 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
|
|
||||||
import { user } from '../../../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import DateFormat from '../../../components/DateFormat.svelte';
|
import DateFormat from '$lib/components/DateFormat.svelte';
|
||||||
import SubmissionStatus from '../../../components/SubmissionStatus.svelte';
|
import SubmissionStatus from '$lib/components/SubmissionStatus.svelte';
|
||||||
import SurveyBadge from '../../../components/SurveyBadge.svelte';
|
import SurveyBadge from '$lib/components/SurveyBadge.svelte';
|
||||||
import WorkAdmin from '../../../components/WorkAdmin.svelte';
|
import WorkAdmin from '$lib/components/WorkAdmin.svelte';
|
||||||
import WorkRepository from '../../../components/WorkRepository.svelte';
|
import WorkRepository from '$lib/components/WorkRepository.svelte';
|
||||||
import { getScore } from '../../../lib/users';
|
import { getScore } from '$lib/users';
|
||||||
|
|
||||||
export let work = null;
|
export let work = null;
|
||||||
let edit = false;
|
let edit = false;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script context="module">
|
<script context="module">
|
||||||
import { getWork } from '../../../lib/works';
|
import { getWork } from '$lib/works';
|
||||||
|
|
||||||
export async function load({ params, stuff }) {
|
export async function load({ params, stuff }) {
|
||||||
return {
|
return {
|
||||||
@ -13,15 +13,15 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
|
|
||||||
import { user } from '../../../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import BuildState from '../../../components/BuildState.svelte';
|
import BuildState from '$lib/components/BuildState.svelte';
|
||||||
import DateFormat from '../../../components/DateFormat.svelte';
|
import DateFormat from '$lib/components/DateFormat.svelte';
|
||||||
import SubmissionStatus from '../../../components/SubmissionStatus.svelte';
|
import SubmissionStatus from '$lib/components/SubmissionStatus.svelte';
|
||||||
import SurveyBadge from '../../../components/SurveyBadge.svelte';
|
import SurveyBadge from '$lib/components/SurveyBadge.svelte';
|
||||||
import WorkRepository from '../../../components/WorkRepository.svelte';
|
import WorkRepository from '$lib/components/WorkRepository.svelte';
|
||||||
import { getRepositories } from '../../../lib/repositories';
|
import { getRepositories } from '$lib/repositories';
|
||||||
import { ToastsStore } from '../../../stores/toasts';
|
import { ToastsStore } from '$lib/stores/toasts';
|
||||||
import { getUsers } from '../../../lib/users';
|
import { getUsers } from '$lib/users';
|
||||||
|
|
||||||
export let work = null;
|
export let work = null;
|
||||||
let usersP = null;
|
let usersP = null;
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<script>
|
<script>
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
|
|
||||||
import { user } from '../../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import DateFormat from '../../components/DateFormat.svelte';
|
import DateFormat from '$lib/components/DateFormat.svelte';
|
||||||
import SurveyBadge from '../../components/SurveyBadge.svelte';
|
import SurveyBadge from '$lib/components/SurveyBadge.svelte';
|
||||||
import SubmissionStatus from '../../components/SubmissionStatus.svelte';
|
import SubmissionStatus from '$lib/components/SubmissionStatus.svelte';
|
||||||
import { getWorks } from '../../lib/works';
|
import { getWorks } from '$lib/works';
|
||||||
import { getPromos } from '../../lib/users';
|
import { getPromos } from '$lib/users';
|
||||||
import { getScore } from '../../lib/users';
|
import { getScore } from '$lib/users';
|
||||||
|
|
||||||
let filterPromo = "";
|
let filterPromo = "";
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<script>
|
<script>
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
|
|
||||||
import { user } from '../../stores/user';
|
import { user } from '$lib/stores/user';
|
||||||
import WorkAdmin from '../../components/WorkAdmin.svelte';
|
import WorkAdmin from '$lib/components/WorkAdmin.svelte';
|
||||||
import SurveyBadge from '../../components/SurveyBadge.svelte';
|
import SurveyBadge from '$lib/components/SurveyBadge.svelte';
|
||||||
import { Work } from '../../lib/works';
|
import { Work } from '$lib/works';
|
||||||
|
|
||||||
let work = new Work();
|
let work = new Work();
|
||||||
</script>
|
</script>
|
||||||
|
Reference in New Issue
Block a user