Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Commit

Permalink
added spee.ch-components under client
Browse files Browse the repository at this point in the history
  • Loading branch information
bones7242 committed May 23, 2018
1 parent ff8e192 commit a58992d
Show file tree
Hide file tree
Showing 235 changed files with 12,136 additions and 6 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Expand Up @@ -3,3 +3,4 @@ exports/
index.js
test/
server/render/build
client/build
4 changes: 3 additions & 1 deletion .gitignore
@@ -1,4 +1,6 @@
node_modules
.idea
.DS_Store
*.log
.idea/
/devConfig/sequelizeCliConfig.js
/devConfig/testingConfig.js
3 changes: 3 additions & 0 deletions .npmignore
@@ -0,0 +1,3 @@
client/src
server/render/src
.babelrc
36 changes: 36 additions & 0 deletions client/build/actions/channel.js
@@ -0,0 +1,36 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.updateLoggedInChannel = updateLoggedInChannel;
exports.checkForLoggedInChannel = checkForLoggedInChannel;
exports.logOutChannel = logOutChannel;

var actions = _interopRequireWildcard(require("../constants/channel_action_types"));

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }

// export action creators
function updateLoggedInChannel(name, shortId, longId) {
return {
type: actions.CHANNEL_UPDATE,
data: {
name: name,
shortId: shortId,
longId: longId
}
};
}

function checkForLoggedInChannel() {
return {
type: actions.CHANNEL_LOGIN_CHECK
};
}

function logOutChannel() {
return {
type: actions.CHANNEL_LOGOUT
};
}
55 changes: 55 additions & 0 deletions client/build/actions/channelCreate.js
@@ -0,0 +1,55 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.updateChannelCreateName = updateChannelCreateName;
exports.updateChannelCreatePassword = updateChannelCreatePassword;
exports.updateChannelCreateStatus = updateChannelCreateStatus;
exports.updateChannelAvailability = updateChannelAvailability;
exports.createChannel = createChannel;

var actions = _interopRequireWildcard(require("../constants/channel_create_action_types"));

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }

// export action creators
function updateChannelCreateName(name, value) {
return {
type: actions.CHANNEL_CREATE_UPDATE_NAME,
data: {
name: name,
value: value
}
};
}

function updateChannelCreatePassword(name, value) {
return {
type: actions.CHANNEL_CREATE_UPDATE_PASSWORD,
data: {
name: name,
value: value
}
};
}

function updateChannelCreateStatus(status) {
return {
type: actions.CHANNEL_CREATE_UPDATE_STATUS,
data: status
};
}

function updateChannelAvailability(channel) {
return {
type: actions.CHANNEL_AVAILABILITY,
data: channel
};
}

function createChannel() {
return {
type: actions.CHANNEL_CREATE
};
}
15 changes: 15 additions & 0 deletions client/build/actions/index.js
@@ -0,0 +1,15 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;

var _show = require("./show");

// import { } from './channel';
// import { } from './publish';
var _default = {
onHandleShowPageUri: _show.onHandleShowPageUri
};
exports.default = _default;
118 changes: 118 additions & 0 deletions client/build/actions/publish.js
@@ -0,0 +1,118 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.selectFile = selectFile;
exports.clearFile = clearFile;
exports.updateMetadata = updateMetadata;
exports.updateClaim = updateClaim;
exports.setPublishInChannel = setPublishInChannel;
exports.updatePublishStatus = updatePublishStatus;
exports.updateError = updateError;
exports.updateSelectedChannel = updateSelectedChannel;
exports.toggleMetadataInputs = toggleMetadataInputs;
exports.onNewThumbnail = onNewThumbnail;
exports.startPublish = startPublish;
exports.validateClaim = validateClaim;

var actions = _interopRequireWildcard(require("../constants/publish_action_types"));

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }

// export action creators
function selectFile(file) {
return {
type: actions.FILE_SELECTED,
data: file
};
}

function clearFile() {
return {
type: actions.FILE_CLEAR
};
}

function updateMetadata(name, value) {
return {
type: actions.METADATA_UPDATE,
data: {
name: name,
value: value
}
};
}

function updateClaim(value) {
return {
type: actions.CLAIM_UPDATE,
data: value
};
}

;

function setPublishInChannel(channel) {
return {
type: actions.SET_PUBLISH_IN_CHANNEL,
channel: channel
};
}

function updatePublishStatus(status, message) {
return {
type: actions.PUBLISH_STATUS_UPDATE,
data: {
status: status,
message: message
}
};
}

function updateError(name, value) {
return {
type: actions.ERROR_UPDATE,
data: {
name: name,
value: value
}
};
}

function updateSelectedChannel(channelName) {
return {
type: actions.SELECTED_CHANNEL_UPDATE,
data: channelName
};
}

function toggleMetadataInputs(showMetadataInputs) {
return {
type: actions.TOGGLE_METADATA_INPUTS,
data: showMetadataInputs
};
}

function onNewThumbnail(file) {
return {
type: actions.THUMBNAIL_NEW,
data: file
};
}

function startPublish(history) {
return {
type: actions.PUBLISH_START,
data: {
history: history
}
};
}

function validateClaim(claim) {
return {
type: actions.CLAIM_AVAILABILITY,
data: claim
};
}

0 comments on commit a58992d

Please sign in to comment.