* core: add User.uid for globally unique user ID * admin: fix ?next for Flow list * stages: add initial webauthn implementation * web: add ak-flow-submit event to submit flow stage * web: show error message for webauthn registration * admin: fix next param not redirecting correctly * stages/webauthn: remove form * stages/webauthn: add API * web: update flow diagram on ak-refresh * stages/webauthn: add initial authentication * stages/webauthn: initial authentication implementation * web: cleanup webauthn utils * stages: rename otp_* to authenticator and move webauthn to authenticator * docs: fix broken links * stages/authenticator_*: fix template paths * stages/authenticator_validate: add device classes * stages/authenticator_webauthn: implement django_otp.devices * stages/authenticator_*: update default stage names * web: add button to create stage on flow page * web: don't minify HTML, remove nbsp * admin: fix typo in stage list * stages/*: use common base class for stage serializer * stages/authenticator_*: create default objects after rename * tests/e2e: adjust stage order
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import resolve from "rollup-plugin-node-resolve";
 | 
						|
import commonjs from "rollup-plugin-commonjs";
 | 
						|
import { terser } from "rollup-plugin-terser";
 | 
						|
import sourcemaps from "rollup-plugin-sourcemaps";
 | 
						|
import typescript from "@rollup/plugin-typescript";
 | 
						|
import cssimport from "rollup-plugin-cssimport";
 | 
						|
import copy from "rollup-plugin-copy";
 | 
						|
import externalGlobals from "rollup-plugin-external-globals";
 | 
						|
 | 
						|
const resources = [
 | 
						|
    { src: "node_modules/@patternfly/patternfly/patternfly.css", dest: "dist/" },
 | 
						|
    { src: "node_modules/@patternfly/patternfly/patternfly-addons.css", dest: "dist/" },
 | 
						|
    { src: "node_modules/@fortawesome/fontawesome-free/css/fontawesome.min.css", dest: "dist/" },
 | 
						|
    { src: "node_modules/@patternfly/patternfly/assets/*", dest: "dist/assets/" },
 | 
						|
    { src: "src/index.html", dest: "dist" },
 | 
						|
    { src: "src/authentik.css", dest: "dist" },
 | 
						|
    { src: "src/assets/*", dest: "dist/assets" },
 | 
						|
    { src: "./icons/*", dest: "dist/assets/icons" },
 | 
						|
];
 | 
						|
 | 
						|
export default [
 | 
						|
    {
 | 
						|
        input: "./src/main.ts",
 | 
						|
        output: [
 | 
						|
            {
 | 
						|
                format: "es",
 | 
						|
                dir: "dist",
 | 
						|
                sourcemap: true,
 | 
						|
            },
 | 
						|
        ],
 | 
						|
        plugins: [
 | 
						|
            cssimport(),
 | 
						|
            typescript(),
 | 
						|
            externalGlobals({
 | 
						|
                django: "django"
 | 
						|
            }),
 | 
						|
            resolve({ browser: true }),
 | 
						|
            commonjs(),
 | 
						|
            sourcemaps(),
 | 
						|
            terser(),
 | 
						|
            copy({
 | 
						|
                targets: [...resources],
 | 
						|
                copyOnce: false,
 | 
						|
            }),
 | 
						|
        ],
 | 
						|
        watch: {
 | 
						|
            clearScreen: false,
 | 
						|
        },
 | 
						|
        external: ["django"]
 | 
						|
    },
 | 
						|
];
 |