parent
b47c7e6061
commit
db22ffebb1
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
const path = require('path')
|
||||||
|
const fs = require('fs')
|
||||||
|
|
||||||
|
const filePathTemplate = path.resolve(__dirname + '/../src/config.template.root.js')
|
||||||
|
const filePathConfig = path.resolve(__dirname + '/../src/config.js')
|
||||||
|
const template = fs.readFileSync(filePathTemplate, 'utf8')
|
||||||
|
const rendered = template.split('{{host}}').join(process.argv[2])
|
||||||
|
fs.writeFileSync(filePathConfig, rendered)
|
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
NODE_VERSION_DEFAULT=$(node -v 2> /dev/null)
|
||||||
|
NODE_VERSION_DEBIAN=$(nodejs -v 2> /dev/null)
|
||||||
|
SCRIPT_FOLDER=$(dirname "$0")
|
||||||
|
SCRIPT_FILE="$SCRIPT_FOLDER/config-create.js"
|
||||||
|
|
||||||
|
echo "Configuring Sipwise VoIP Platform at $1"
|
||||||
|
|
||||||
|
if [ "$NODE_VERSION_DEFAULT" != '' ]
|
||||||
|
then
|
||||||
|
node "$SCRIPT_FILE" "$1"
|
||||||
|
elif [ "$NODE_VERSION_DEBIAN" != '' ]
|
||||||
|
then
|
||||||
|
nodejs "$SCRIPT_FILE" "$1"
|
||||||
|
fi
|
||||||
|
|
@ -0,0 +1,54 @@
|
|||||||
|
# Reusable Vue.js Components
|
||||||
|
|
||||||
|
## Layout
|
||||||
|
|
||||||
|
### Page
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<csc-page />
|
||||||
|
```
|
||||||
|
|
||||||
|
### Sticky Page
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<csc-page />
|
||||||
|
```
|
||||||
|
|
||||||
|
### Sticky Tabs
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<csc-page />
|
||||||
|
```
|
||||||
|
|
||||||
|
## Forms
|
||||||
|
|
||||||
|
### Text Input
|
||||||
|
|
||||||
|
The very basic text input field is the `CscInput`. It is a direct extension of `QInput`
|
||||||
|
and is supposed to be the standard text input component.
|
||||||
|
|
||||||
|
* [QInput](https://quasar.dev/vue-components/input#QInput-API)
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<csc-input
|
||||||
|
v-model="text"
|
||||||
|
/>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Password Input
|
||||||
|
|
||||||
|
The `CscInputPassword` inherits from `CscInput`.
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<csc-input-password
|
||||||
|
v-model="password"
|
||||||
|
/>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Password Retype
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<csc-input-password-retype
|
||||||
|
v-model="password"
|
||||||
|
/>
|
||||||
|
```
|
@ -0,0 +1,4 @@
|
|||||||
|
export default {
|
||||||
|
baseHttpUrl: 'https://{{host}}',
|
||||||
|
baseWsUrl: 'wss://{{host}}'
|
||||||
|
}
|
Loading…
Reference in new issue