Cambio de ruta petite-vue
This commit is contained in:
@@ -678,7 +678,7 @@
|
||||
<!-- <script src=" js/datalist.js"></script> -->
|
||||
<script src="js/datepicker-es.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js"></script>
|
||||
<script src="js/auditoría.js?v=2" type="module"></script>
|
||||
<script src="js/auditoría.js?v=3" type="module"></script>
|
||||
<script src="js/scrollables.js"></script>
|
||||
<script src="./js/datalist.js"></script>
|
||||
<script>
|
||||
|
||||
@@ -180,7 +180,7 @@
|
||||
|
||||
<!-- <script src=" js/datalist.js"></script> -->
|
||||
<script type="module">
|
||||
import { createApp } from 'https://unpkg.com/petite-vue?module'
|
||||
import { createApp } from 'https://unpkg.com/petite-vue@0.4.1/dist/petite-vue.es.js'
|
||||
createApp({
|
||||
horarios: [],
|
||||
profesores: [],
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue?module';
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue@0.4.1/dist/petite-vue.es.js';
|
||||
$('div.modal#cargando').modal({
|
||||
backdrop: 'static',
|
||||
keyboard: false,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue?module';
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue@0.4.1/dist/petite-vue.es.js';
|
||||
const new_aviso = reactive({
|
||||
titulo: '',
|
||||
descripcion: '',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createApp } from 'https://unpkg.com/petite-vue?module';
|
||||
import { createApp } from 'https://unpkg.com/petite-vue@0.4.1/dist/petite-vue.es.js';
|
||||
const app = createApp({
|
||||
carreras: [],
|
||||
niveles: [],
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// @ts-ignore Import module
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue?module';
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue@0.4.1/dist/petite-vue.es.js';
|
||||
const webServices = {
|
||||
getPeriodosV1: async () => {
|
||||
try {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue?module';
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue@0.4.1/dist/petite-vue.es.js';
|
||||
const filter = reactive({
|
||||
facultad: -1,
|
||||
profesor: '',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue?module';
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue@0.4.1/dist/petite-vue.es.js';
|
||||
const profesores = reactive({
|
||||
data: [],
|
||||
search: null,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createApp } from 'https://unpkg.com/petite-vue?module';
|
||||
import { createApp } from 'https://unpkg.com/petite-vue@0.4.1/dist/petite-vue.es.js';
|
||||
const app = createApp({
|
||||
periodos: [],
|
||||
niveles: [],
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createApp } from 'https://unpkg.com/petite-vue?module';
|
||||
import { createApp } from 'https://unpkg.com/petite-vue@0.4.1/dist/petite-vue.es.js';
|
||||
|
||||
// añade una ventana de confirmación al intentar cambiar de página
|
||||
const app = createApp({
|
||||
|
||||
@@ -518,7 +518,8 @@
|
||||
<script src="js/jquery-ui.touch-punch.min.js"></script>
|
||||
<script src="js/bootstrap/bootstrap.min.js"></script>
|
||||
<?php include_once 'js/messages.php'; ?>
|
||||
<script src="https://unpkg.com/petite-vue"></script>
|
||||
<!-- <script src="https://unpkg.com/petite-vue"></script> -->
|
||||
<script src="https://unpkg.com/petite-vue@0.4.1/dist/petite-vue.iife.js"></script>
|
||||
<script src="js/scrollables.js"></script>
|
||||
<script>
|
||||
const estados = [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue?module'
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue@0.4.1/dist/petite-vue.es.js'
|
||||
|
||||
type Registro = {
|
||||
carrera: string;
|
||||
@@ -77,10 +77,10 @@ $('div.modal#cargando').modal({
|
||||
|
||||
const store = reactive({
|
||||
loading: false,
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
perido: null as Periodo | null,
|
||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
||||
current: {
|
||||
comentario: '',
|
||||
clase_vista: null,
|
||||
@@ -220,13 +220,13 @@ const store = reactive({
|
||||
registro_fecha_justificacion: Date;
|
||||
};
|
||||
try {
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
const res = await fetch('action/action_justificar.php', {
|
||||
method: 'PUT',
|
||||
=======
|
||||
=======
|
||||
const res = await fetch('action/justificar.php', {
|
||||
method: 'POST',
|
||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
@@ -246,8 +246,8 @@ const store = reactive({
|
||||
store.current.justificada.justificador_rol = data.justificador_rol
|
||||
store.current.justificada.registro_fecha_justificacion = data.registro_fecha_justificacion
|
||||
},
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
async justificarBloque(fecha: Date, bloques: Array<number>, justificacion: string) {
|
||||
if (bloques.length === 0) {
|
||||
alert('No se ha seleccionado ningún bloque');
|
||||
@@ -283,7 +283,7 @@ const store = reactive({
|
||||
alert('Error al justificar');
|
||||
}
|
||||
},
|
||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
||||
registros: {
|
||||
data: [] as Registro[],
|
||||
async fetch(fecha?: Date, fecha_inicio?: Date, fecha_fin?: Date) {
|
||||
@@ -331,11 +331,11 @@ const store = reactive({
|
||||
if one of the filters is null, then it is not relevant
|
||||
|
||||
*/
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
const filters = Object.keys(store.filters).filter((filtro) => store.filters[filtro] !== null || store.filters[filtro]?.length > 0 )
|
||||
=======
|
||||
=======
|
||||
const filters = Object.keys(store.filters).filter((filtro) => store.filters[filtro] !== null || store.filters[filtro]?.length > 0)
|
||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
||||
return this.data.filter((registro: Registro) => {
|
||||
return filters.every((filtro) => {
|
||||
switch (filtro) {
|
||||
@@ -416,10 +416,10 @@ type Profesor = {
|
||||
}
|
||||
createApp({
|
||||
store,
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
messages: [] as Array<{ title: string, text: string, type: string, timestamp: string }>,
|
||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
||||
get clase_vista() {
|
||||
return store.current.clase_vista
|
||||
},
|
||||
@@ -436,7 +436,7 @@ createApp({
|
||||
profesores: [] as Profesor[],
|
||||
async mounted() {
|
||||
$('div.modal#cargando').modal('show');
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
|
||||
// await store.registros.fetch()
|
||||
await store.facultades.fetch()
|
||||
@@ -446,7 +446,7 @@ createApp({
|
||||
this.profesores = await (await fetch('action/action_profesor.php')).json() as Profesor[];
|
||||
|
||||
$('div.modal#cargando').modal('hide');
|
||||
=======
|
||||
=======
|
||||
try {
|
||||
|
||||
// await store.registros.fetch()
|
||||
@@ -464,6 +464,6 @@ createApp({
|
||||
finally {
|
||||
$('div.modal#cargando').modal('hide');
|
||||
}
|
||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
||||
}
|
||||
}).mount('#app')
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue?module'
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue@0.4.1/dist/petite-vue.es.js'
|
||||
|
||||
type Profesor = {
|
||||
profesor_clave: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue?module'
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue@0.4.1/dist/petite-vue.es.js'
|
||||
|
||||
type Carrera = {
|
||||
carrera_id: number;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// @ts-ignore Import module
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue?module'
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue@0.4.1/dist/petite-vue.es.js'
|
||||
|
||||
export interface PeridoV1 {
|
||||
IdNivel: number;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue?module';
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue@0.4.1/dist/petite-vue.es.js';
|
||||
// define that $ has type any
|
||||
declare const $: any;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue?module'
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue@0.4.1/dist/petite-vue.es.js'
|
||||
type Profesor = {
|
||||
profesor_clave: string;
|
||||
profesor_correo: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue?module'
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue@0.4.1/dist/petite-vue.es.js'
|
||||
|
||||
interface Periodo {
|
||||
created_at: Date;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue?module'
|
||||
import { createApp, reactive } from 'https://unpkg.com/petite-vue@0.4.1/dist/petite-vue.es.js'
|
||||
type Puesto = {
|
||||
puesto_id: number,
|
||||
nombre: string,
|
||||
|
||||
Reference in New Issue
Block a user