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