* feat: apis for attaching chatlogs and polls to session materials * fix: anticipate becoming tzaware, and improve guard against attempts to provide docs for sessions that have no official timeslot assignment. * fix: get chatlog upload to actually work Modifications to several initial implementation decisions. Updates to the fixtures. * fix: test polls upload Refactored test to reduce duplicate code * fix: allow api keys to be created for the new endpoints * feat: add ability to view chatlog and polls documents. Show links in session materials. * fix: commit new template * fix: typo in migration signatures * feat: add main doc page handling for polls. Improve tests. * feat: chat log vue component + embedded vue loader * feat: render polls using Vue * fix: address pug syntax review comments from Nick. * fix: repair remaining mention of chat log from copymunging * fix: use double-quotes in html attributes * fix: provide missing choices update migration * test: silence html validator empty attr warnings * test: fix test_runner config * fix: locate session when looking at a dochistory object for polls or chatlog Co-authored-by: Nicolas Giard <github@ngpixel.com>
45 lines
1.1 KiB
JavaScript
45 lines
1.1 KiB
JavaScript
import { defineConfig } from 'vite'
|
|
import { resolve } from 'path'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import servePreviewAssets from './dev/vite-plugins/serve-preview-assets'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig(({ command, mode }) => {
|
|
const viteConfig = {
|
|
base: '/static/',
|
|
build: {
|
|
outDir: 'ietf/static/dist-neue',
|
|
manifest: true,
|
|
rollupOptions: {
|
|
input: {
|
|
main: 'client/main.js',
|
|
embedded: 'client/embedded.js'
|
|
}
|
|
}
|
|
},
|
|
cacheDir: '.vite',
|
|
plugins: [
|
|
vue()
|
|
],
|
|
publicDir: 'ietf/static/public',
|
|
server: {
|
|
host: true,
|
|
port: 3000,
|
|
strictPort: true
|
|
},
|
|
preview: {
|
|
host: true,
|
|
port: 3000,
|
|
strictPort: true
|
|
}
|
|
}
|
|
if (mode === 'test') {
|
|
viteConfig.base = '/'
|
|
viteConfig.root = resolve(__dirname, 'client')
|
|
viteConfig.build.outDir = 'dist'
|
|
viteConfig.build.rollupOptions.input.main = resolve(__dirname, 'client/index.html')
|
|
viteConfig.plugins.push(servePreviewAssets())
|
|
}
|
|
return viteConfig
|
|
})
|