Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Alsijil
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Alsijil
Merge requests
!316
Draft: Resolve "Adjust for operation with new SPA"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Draft: Resolve "Adjust for operation with new SPA"
233-adjust-for-operation-with-new-spa
into
feature/vuejs
Overview
1
Commits
7
Pipelines
4
Changes
25
Closed
Hangzhi Yu
requested to merge
233-adjust-for-operation-with-new-spa
into
feature/vuejs
2 years ago
Overview
1
Commits
7
Pipelines
4
Changes
25
Expand
Closes
#233 (closed)
0
0
Merge request reports
Compare
feature/vuejs
version 3
a359e024
2 years ago
version 2
6c429dbb
2 years ago
version 1
5e691110
2 years ago
feature/vuejs (base)
and
latest version
latest version
898ea66a
7 commits,
2 years ago
version 3
a359e024
6 commits,
2 years ago
version 2
6c429dbb
5 commits,
2 years ago
version 1
5e691110
2 commits,
2 years ago
25 files
+
774
−
257
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
25
Search (e.g. *.vue) (Ctrl+P)
aleksis/apps/alsijil/assets/components/coursebook/CourseBook.vue deleted
100644 → 0
+
0
−
85
Options
<
template
>
<ApolloQuery
:query=
"require('./CourseBook.graphql')"
:variables=
"
{ lessonId: $route.params.lessonId }"
>
<template
v-slot=
"
{ result: { loading, error, data } }">
<!-- Error -->
<message-box
v-if=
"error"
type=
"error"
>
{{
$t
(
"
alsijil.error_occurred
"
)
}}
</message-box>
<!-- Result -->
<div
v-else-if=
"data"
class=
"result apollo"
>
<div
class=
"d-flex justify-space-between"
>
<v-btn
text
color=
"primary"
:href=
"$root.urls.select_coursebook()"
>
<v-icon
left
>
mdi-chevron-left
</v-icon>
{{
$t
(
"
alsijil.back
"
)
}}
</v-btn>
<update-indicator
@
manual-update=
"updateManually()"
ref=
"indicator"
:status=
"status"
></update-indicator>
</div>
<v-row>
<v-col
cols=
"12"
>
<lesson-documentations
:lesson-documentations=
"data.lessonDocumentations"
:planned-lesson-periods-date-times=
"data.lesson.plannedLessonperiodsDatetimes"
:groups=
"data.lesson.groups"
:excuse-types=
"data.excuseTypes"
:extra-marks=
"data.extraMarks"
:save-lesson-documentations-per-week=
"saveLessonDocumentationsPerWeek"
/>
</v-col>
</v-row>
</div>
<!-- No result or Loading -->
<div
v-else
class=
"text-center"
>
<v-progress-circular
indeterminate
color=
"primary"
class=
"ma-auto"
></v-progress-circular>
</div>
</
template
>
</ApolloQuery>
</template>
<
script
>
import
{
CHANGES
,
SAVED
,
UPDATING
}
from
"
../../UpdateStatuses.js
"
;
import
UpdateIndicator
from
"
./UpdateIndicator.vue
"
;
import
LessonDocumentations
from
"
./LessonDocumentations.vue
"
;
export
default
{
components
:
{
UpdateIndicator
,
LessonDocumentations
,
},
props
:
[
"
saveLessonDocumentationsPerWeek
"
],
methods
:
{
processDataChange
(
event
)
{
this
.
status
=
CHANGES
;
// alert("Probably save the data");
console
.
log
(
event
);
setTimeout
(()
=>
{
this
.
status
=
UPDATING
;
},
500
)
setTimeout
(()
=>
{
this
.
status
=
SAVED
;
},
1000
)
},
updateManually
(
event
)
{
alert
(
"
Data sync triggered manually
"
);
this
.
status
=
UPDATING
;
setTimeout
(()
=>
{
this
.
status
=
SAVED
;
},
500
)
},
},
name
:
"
course-book
"
,
data
:
()
=>
{
return
{
ping
:
"
ping
"
,
status
:
SAVED
,
}
}
}
</
script
>
Loading