This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script lang="js"> | |
import { USlideover } from '#components'; | |
/* Extend USlideover so as to emit signal when the slider is opened */ | |
export default defineComponent({ | |
emits: ['open', 'update:modelValue'], | |
extends: USlideover, | |
props: ['modelValue'], | |
setup(props, { emit, slots }) { | |
const { modelValue } = toRefs(props); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; | |
import { setup } from '@nuxt/test-utils-edge'; | |
import { PrismaClient } from '@prisma/client'; | |
// import { useAddJob } from '../composables/getdata.js'; | |
/* this is useAddJob from getdata.js */ | |
const prisma = new PrismaClient(); | |
/* a simple function to be tested */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/python | |
# http://exploreflask.com/en/latest/views.html | |
# https://stackoverflow.com/questions/51691730/flask-middleware-for-specific-route | |
# https://dev.to/rhymes/logging-flask-requests-with-colors-and-structure--7g1 | |
import logging | |
from logging.handlers import RotatingFileHandler | |
from flask import Flask, request, jsonify | |
from time import strftime |