Skip to content

Commit

Permalink
⬆️ Fix missing , and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicente Plata committed Oct 6, 2019
1 parent 19a8567 commit c3f0cae
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 44 deletions.
59 changes: 19 additions & 40 deletions build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,57 +9,36 @@ var _messages = _interopRequireDefault(require("./messages"));

var _allowedLanguages = _interopRequireDefault(require("./allowedLanguages"));

var _react = _interopRequireDefault(require("react"));
var _react = _interopRequireWildcard(require("react"));

var _propTypes = _interopRequireDefault(require("prop-types"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
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; } }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }

var SomethingNice =
/*#__PURE__*/
function (_React$PureComponent) {
_inherits(SomethingNice, _React$PureComponent);
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }

function SomethingNice(props) {
var _this;
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

_classCallCheck(this, SomethingNice);
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

_this = _possibleConstructorReturn(this, _getPrototypeOf(SomethingNice).call(this, props));
_this.message = (0, _messages["default"])(props.lang);
return _this;
}
var SomethingNice = function SomethingNice(_ref) {
var className = _ref.className,
lang = _ref.lang,
style = _ref.style;

_createClass(SomethingNice, [{
key: "render",
value: function render() {
return _react["default"].createElement("span", {
style: this.props.style,
className: this.props.className
}, this.message);
}
}]);
var _useState = (0, _react.useState)((0, _messages["default"])(lang)),
_useState2 = _slicedToArray(_useState, 1),
message = _useState2[0];

return SomethingNice;
}(_react["default"].PureComponent);
return _react["default"].createElement("span", {
style: style,
className: className
}, message);
};

SomethingNice.defaultProps = {
lang: "en"
Expand Down
4 changes: 2 additions & 2 deletions build/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var messages = ["Have a great day ☕️!", "Lets' continue bringing out the best in one another 👌", "Thank you for your dedication, your time and your talent 👍", "Thank you for your hard work ✨", "Thank you 👏!", "We're glad that you're part of our team 🤗", "Your engineering team wishes you a fantastic day ♥", "You're a rockstar!", "We're lucky to have you on this team!"];
var mensajes = ["¡Que tengas un buen día ☕️ !", "¡Gracias por trabajar tanto!", "Muchas gracias :)", "Qué bien lo estás haciendo 👌", "Gracias por tu dedicación, tu tiempo y tu talento 👍", "¡Gracias 👏!", "Estamos contentos de que seas parte de nuestro grupo 🤗", "Tu grupo de ingrenieria te desea un fantastico día ♥"];
var messages = ["Have a great day ☕️!", "Let's continue bringing out the best in one another 👌", "Thank you for your dedication, your time and your talent 👍", "Thank you for your hard work ✨", "Thank you 👏!", "We're glad that you're part of our team 🤗", "Your engineering team wishes you a fantastic day ♥", "You're a rockstar!", "We're lucky to have you on this team!", "You have the best attitude!", "Thank you for always being so reliable", "You can totally do this💪", "You are doing great!", "You are beautiful", "If no one's told you yet today, you're doing great.", "You're good enough, you're smart enough, and doggone it, people like you!", "We're lucky to have you on this team!", "Never give up!", "We're lucky to have you on this team!", "Having you on this team makes a big difference", "It's so refreshing getting to work with you.", "The work that you do matters to our success.", "I am continually impressed by your results!", "You're awesome!", "You're kicking goals!", "You came, you saw, you conquered!", "You're the bees knees", "We appreciate all your hard work", "Your hard work doesn't go unnoticed! 👏", "Thank you for putting in the effort to make something great 👌", "We're doing great work together 🤗", "Good initiative! We can learn to colaborate with this activity!", "Dear Team Member, You are Amazing! Keep up your great Job!"];
var mensajes = ["¡Que tengas un buen día ☕️ !", "¡Gracias por trabajar tanto!", "Muchas gracias :)", "Qué bien lo estás haciendo 👌", "Gracias por tu dedicación, tu tiempo y tu talento 👍", "¡Gracias 👏!", "Estamos contentos de que seas parte de nuestro grupo 🤗", "Tu grupo de ingrenieria te desea un fantastico día ♥", "¡Tienes la mejor actitud!", "Gracias por ser siempre tan confiable.", "Buena iniciativa! De esta manera aprendemos a colaborar!", "Gracias por este trabajo!", "Querido compañero, Eres increíble! Sigue así!"];

var languages = function languages(lang) {
var l = {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-something-nice",
"version": "0.4.0",
"version": "0.5.0",
"description": "",
"main": "build/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const messages = [
"You are beautiful",
"If no one's told you yet today, you're doing great.",
"You're good enough, you're smart enough, and doggone it, people like you!",
"We're lucky to have you on this team!"
"We're lucky to have you on this team!",
"Never give up!",
"We're lucky to have you on this team!",
"Having you on this team makes a big difference",
Expand Down

0 comments on commit c3f0cae

Please sign in to comment.