@94ai/nf-microphone 3.3.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.cjs ADDED
@@ -0,0 +1,49 @@
1
+ module.exports = {
2
+ "root": true,
3
+ "env": {
4
+ "node": true
5
+ },
6
+ "extends": [
7
+ "plugin:vue/essential"
8
+ ],
9
+ "parser": "vue-eslint-parser",
10
+ "parserOptions": {
11
+ "parser": "@typescript-eslint/parser",
12
+ "ecmaVersion": 2020,
13
+ "sourceType": "module"
14
+ },
15
+ "rules": {
16
+ "@typescript-eslint/ban-ts-ignore": "off",
17
+ "@typescript-eslint/explicit-function-return-type": "off",
18
+ "@typescript-eslint/no-explicit-any": "off",
19
+ "@typescript-eslint/no-var-requires": "off",
20
+ "@typescript-eslint/no-empty-function": "off",
21
+ "vue/custom-event-name-casing": "off",
22
+ "no-use-before-define": "off",
23
+ "@typescript-eslint/no-use-before-define": "off",
24
+ "@typescript-eslint/ban-ts-comment": "off",
25
+ "@typescript-eslint/ban-types": "off",
26
+ "@typescript-eslint/no-non-null-assertion": "off",
27
+ "@typescript-eslint/explicit-module-boundary-types": "off",
28
+ "@typescript-eslint/no-unused-vars": "off",
29
+ "vue/multi-word-component-names": [
30
+ "error",
31
+ {
32
+ "ignores": [
33
+ "index"
34
+ ]
35
+ }
36
+ ],
37
+ "no-console": "warn",
38
+ "no-debugger": "warn",
39
+ "prettier/prettier": [
40
+ "error",
41
+ {
42
+ "tabWidth": 2,
43
+ "singleQuote": true,
44
+ "semi": false,
45
+ "endOfLine": "auto"
46
+ }
47
+ ]
48
+ }
49
+ }
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # `@94ai/nf-microphone`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const nfMicrophone = require('@94ai/nf-microphone');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
@@ -0,0 +1,8 @@
1
+ export {}
2
+
3
+ declare module 'vue' {
4
+ export interface GlobalComponents {
5
+ NfMicrophone: typeof import('@94ai/nf-microphone/lib/nf-microphone.vue')['default']
6
+
7
+ }
8
+ }
package/lib/index.d.ts ADDED
@@ -0,0 +1,39 @@
1
+ import { PluginObject } from 'vue-demi';
2
+ declare const _default: import("vue/types/v3-component-public-instance").ComponentPublicInstanceConstructor<import("vue/types/v3-component-public-instance").Vue3Instance<{}, Readonly<import("vue-demi").ExtractPropTypes<{
3
+ 'nf-microphone': {
4
+ type: import("vue-demi").PropType<string>;
5
+ required: true;
6
+ };
7
+ }>>, Readonly<import("vue-demi").ExtractPropTypes<{
8
+ 'nf-microphone': {
9
+ type: import("vue-demi").PropType<string>;
10
+ required: true;
11
+ };
12
+ }>>, {
13
+ click: (event: Event) => void;
14
+ }, {}, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue-demi").ExtractPropTypes<{
15
+ 'nf-microphone': {
16
+ type: import("vue-demi").PropType<string>;
17
+ required: true;
18
+ };
19
+ }>>> & import("vue-demi").ShallowUnwrapRef<{}> & import("vue/types/v3-component-options").ExtractComputedReturns<{}> & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{
20
+ 'nf-microphone': {
21
+ type: import("vue-demi").PropType<string>;
22
+ required: true;
23
+ };
24
+ }>>, any, any, any, import("vue-demi").ComponentComputedOptions, import("vue-demi").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue-demi").ExtractPropTypes<{
25
+ 'nf-microphone': {
26
+ type: import("vue-demi").PropType<string>;
27
+ required: true;
28
+ };
29
+ }>>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
30
+ click: (event: Event) => void;
31
+ }, string, {}> & {
32
+ props: {
33
+ 'nf-microphone': {
34
+ type: import("vue-demi").PropType<string>;
35
+ required: true;
36
+ };
37
+ };
38
+ } & PluginObject<undefined>;
39
+ export default _default;
@@ -0,0 +1,38 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode(".nf-microphone[data-v-16384c34] {\n background-color: red;\n height: 300px;\n}"));
7
+ document.head.appendChild(elementStyle);
8
+ }
9
+ } catch (e) {
10
+ console.error("vite-plugin-css-injected-by-js", e);
11
+ }
12
+ })();
13
+ "use strict";
14
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
15
+ const vueDemi = require("vue-demi");
16
+ const vue2RuntimeHelpers = require("@94ai/vue2-runtime-helpers");
17
+ const __sfc_main = vueDemi.defineComponent({
18
+ name: "nf-microphone"
19
+ });
20
+ __sfc_main.setup = (__props, __ctx) => {
21
+ __ctx.emit;
22
+ return {};
23
+ };
24
+ const nfMicrophone_vue_vue_type_style_index_0_scoped_16384c34_lang = "";
25
+ var _sfc_render = function render() {
26
+ var _vm = this, _c = _vm._self._c;
27
+ _vm._self._setupProxy;
28
+ return _c("div", {
29
+ staticClass: "nf-microphone"
30
+ });
31
+ };
32
+ var _sfc_staticRenderFns = [];
33
+ var __component__ = /* @__PURE__ */ vue2RuntimeHelpers.normalizeComponent(__sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "16384c34", null, null);
34
+ const NfMicrophone = __component__.exports;
35
+ NfMicrophone.install = (app) => {
36
+ app.component("nf-microphone", NfMicrophone);
37
+ };
38
+ exports.default = NfMicrophone;
@@ -0,0 +1,38 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode(".nf-microphone[data-v-16384c34] {\n background-color: red;\n height: 300px;\n}"));
7
+ document.head.appendChild(elementStyle);
8
+ }
9
+ } catch (e) {
10
+ console.error("vite-plugin-css-injected-by-js", e);
11
+ }
12
+ })();
13
+ import { defineComponent } from "vue-demi";
14
+ import { normalizeComponent } from "@94ai/vue2-runtime-helpers";
15
+ const __sfc_main = defineComponent({
16
+ name: "nf-microphone"
17
+ });
18
+ __sfc_main.setup = (__props, __ctx) => {
19
+ __ctx.emit;
20
+ return {};
21
+ };
22
+ const nfMicrophone_vue_vue_type_style_index_0_scoped_16384c34_lang = "";
23
+ var _sfc_render = function render() {
24
+ var _vm = this, _c = _vm._self._c;
25
+ _vm._self._setupProxy;
26
+ return _c("div", {
27
+ staticClass: "nf-microphone"
28
+ });
29
+ };
30
+ var _sfc_staticRenderFns = [];
31
+ var __component__ = /* @__PURE__ */ normalizeComponent(__sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "16384c34", null, null);
32
+ const NfMicrophone = __component__.exports;
33
+ NfMicrophone.install = (app) => {
34
+ app.component("nf-microphone", NfMicrophone);
35
+ };
36
+ export {
37
+ NfMicrophone as default
38
+ };
@@ -0,0 +1,17 @@
1
+ declare const _default: import("vue-demi").DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ 'nf-microphone': string;
3
+ }>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
4
+ click: (event: Event) => void;
5
+ }, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ 'nf-microphone': string;
7
+ }>>>, {}>;
8
+ export default _default;
9
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
+ type __VLS_TypePropsToRuntimeProps<T> = {
11
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
12
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
13
+ } : {
14
+ type: import('vue').PropType<T[K]>;
15
+ required: true;
16
+ };
17
+ };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+ import '@94ai/nf-theme-chalk/lib/css/nf-microphone.css'
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+ import '@94ai/nf-theme-chalk/lib/nf-microphone.scss'
@@ -0,0 +1,8 @@
1
+ import NfMicrophone from './nf-microphone.vue'
2
+ import { Vue2, PluginObject } from 'vue-demi'
3
+
4
+ NfMicrophone.install = (app: typeof Vue2) => {
5
+ app!.component('nf-microphone', NfMicrophone)
6
+ }
7
+
8
+ export default NfMicrophone as typeof NfMicrophone & PluginObject<undefined>
@@ -0,0 +1,30 @@
1
+ <template>
2
+ <div class="nf-microphone"></div>
3
+ </template>
4
+
5
+ <script lang="ts">
6
+ import { defineComponent } from 'vue-demi'
7
+
8
+ export default defineComponent({
9
+ name: "nf-microphone",
10
+ })
11
+ </script>
12
+
13
+ <script lang="ts" setup>
14
+ const props = defineProps<{
15
+ 'nf-microphone': string;
16
+ }>()
17
+ const emit = defineEmits<{
18
+ (e: 'click', event: Event): void
19
+ }>()
20
+ const emitClick = (e: Event) => {
21
+ e.stopPropagation()
22
+ emit('click', e)
23
+ }
24
+ </script>
25
+ <style lang="scss" scoped>
26
+ .nf-microphone {
27
+ background-color: red;
28
+ height: 300px;
29
+ }
30
+ </style>
@@ -0,0 +1 @@
1
+ import '@94ai/nf-theme-chalk/lib/css/nf-microphone.css'
@@ -0,0 +1 @@
1
+ import '@94ai/nf-theme-chalk/lib/nf-microphone.scss'
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@94ai/nf-microphone",
3
+ "version": "3.3.35",
4
+ "description": "> TODO: description",
5
+ "keywords": [],
6
+ "author": "zoujiahe <zoujiahe@94ai.com>",
7
+ "homepage": "https://oss.xccjh.top/common-ui/#/ai-index",
8
+ "license": "ISC",
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "http://94ai.gitlab.com/ui/common-ui.git"
15
+ },
16
+ "dependencies": {
17
+ "@94ai/nf-theme-chalk": "^3.3.35",
18
+ "vue-demi": "^0.14.5"
19
+ },
20
+ "peerDependenciesMeta": {
21
+ "@vue/composition-api": {
22
+ "optional": true
23
+ }
24
+ },
25
+ "peerDependencies": {
26
+ "@vue/composition-api": "^1.0.0-rc.1",
27
+ "element-ui": ">=2.13.2",
28
+ "vue": "^2.0.0 || >=3.0.0"
29
+ },
30
+ "types": "lib/index.d.ts",
31
+ "main": "lib/nf-microphone.cjs.js",
32
+ "module": "lib/nf-microphone.esm-bundler.js",
33
+ "gitHead": "7ec765b1c35eb75e8c584e6945590005b48f2c09"
34
+ }
@@ -0,0 +1,8 @@
1
+ export default {
2
+ plugins: {
3
+ // 这个工具可以实现自动添加CSS3前缀
4
+ autoprefixer: {
5
+ overrideBrowserslist: ['last 5 version', '>1%', 'ie >=8']
6
+ },
7
+ },
8
+ }