18 changed files with 550 additions and 364 deletions
@ -0,0 +1,56 @@ |
|||
/* eslint-disable*/ |
|||
'use strict'; |
|||
|
|||
module.exports = dc => { |
|||
const DataTypes = dc.ORM; |
|||
const sequelize = dc.orm; |
|||
const CameraAbilityBind = sequelize.define("cameraAbilityBind", { |
|||
id: { |
|||
type: DataTypes.INTEGER, |
|||
allowNull: false, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: true, |
|||
field: "id", |
|||
autoIncrement: true, |
|||
unique: "camera_ability_bind_id_uindex" |
|||
}, |
|||
cameraId: { |
|||
type: DataTypes.INTEGER, |
|||
allowNull: false, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "camera_id", |
|||
autoIncrement: false, |
|||
references: { |
|||
key: "id", |
|||
model: "camera" |
|||
} |
|||
}, |
|||
abilityId: { |
|||
type: DataTypes.INTEGER, |
|||
allowNull: false, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "ability_id", |
|||
autoIncrement: false, |
|||
references: { |
|||
key: "id", |
|||
model: "cameraAbility" |
|||
} |
|||
} |
|||
}, { |
|||
tableName: "camera_ability_bind", |
|||
comment: "", |
|||
indexes: [] |
|||
}); |
|||
dc.models.CameraAbilityBind = CameraAbilityBind; |
|||
|
|||
const Camera = dc.models.Camera; |
|||
const CameraAbility = dc.models.CameraAbility; |
|||
Camera.belongsToMany(CameraAbility, { through: CameraAbilityBind, foreignKey: 'cameraId', otherKey: 'abilityId' }); |
|||
|
|||
return CameraAbilityBind; |
|||
}; |
After Width: | Height: | Size: 13 KiB |
@ -0,0 +1,22 @@ |
|||
import React from "react"; |
|||
|
|||
const Coming = () => { |
|||
return ( |
|||
<div style={{ |
|||
height: 'calc(100% - 12px)', width: '100%', backgroundColor: '#fff', |
|||
display: 'flex', justifyContent: 'center', alignItems: 'center', |
|||
position: 'absolute', |
|||
}}> |
|||
<img |
|||
src='/assets/images/background/building.jpg' |
|||
style={{ |
|||
maxHeight: 228, |
|||
maxWidth: 645, |
|||
width: '80%' |
|||
}} |
|||
/> |
|||
</div> |
|||
) |
|||
} |
|||
|
|||
export default Coming |
@ -1,6 +1,8 @@ |
|||
'use strict'; |
|||
import SimpleFileDownButton from './simpleFileDownButton' |
|||
import Coming from './coming' |
|||
|
|||
export { |
|||
SimpleFileDownButton |
|||
SimpleFileDownButton, |
|||
Coming |
|||
}; |
|||
|
@ -0,0 +1,18 @@ |
|||
import React from "react"; |
|||
import { connect } from "react-redux"; |
|||
import { Coming } from '$components' |
|||
|
|||
const Recycle = () => { |
|||
return ( |
|||
<Coming /> |
|||
) |
|||
} |
|||
|
|||
function mapStateToProps (state) { |
|||
const { auth } = state; |
|||
return { |
|||
user: auth.user, |
|||
}; |
|||
} |
|||
|
|||
export default connect(mapStateToProps)(Recycle); |
Loading…
Reference in new issue