1.0.0.1
This commit is contained in:
parent
b0b2dc530c
commit
c15f7371d4
@ -461,12 +461,12 @@ module.exports = class Courier_profilesDBApi {
|
|||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
model: db.file,
|
model: db.files,
|
||||||
as: 'verification_files',
|
as: 'verification_files',
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
model: db.file,
|
model: db.files,
|
||||||
as: 'profile_images',
|
as: 'profile_images',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -36,7 +36,7 @@ module.exports = class FileDBApi {
|
|||||||
);
|
);
|
||||||
|
|
||||||
for (const file of inexistentFiles) {
|
for (const file of inexistentFiles) {
|
||||||
await db.file.create(
|
await db.files.create(
|
||||||
{
|
{
|
||||||
belongsTo: relation.belongsTo,
|
belongsTo: relation.belongsTo,
|
||||||
belongsToColumn: relation.belongsToColumn,
|
belongsToColumn: relation.belongsToColumn,
|
||||||
@ -62,7 +62,7 @@ module.exports = class FileDBApi {
|
|||||||
) {
|
) {
|
||||||
const transaction = (options && options.transaction) || undefined;
|
const transaction = (options && options.transaction) || undefined;
|
||||||
|
|
||||||
const filesToDelete = await db.file.findAll({
|
const filesToDelete = await db.files.findAll({
|
||||||
where: {
|
where: {
|
||||||
belongsTo: relation.belongsTo,
|
belongsTo: relation.belongsTo,
|
||||||
belongsToId: relation.belongsToId,
|
belongsToId: relation.belongsToId,
|
||||||
|
|||||||
@ -456,12 +456,12 @@ module.exports = class Merchant_profilesDBApi {
|
|||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
model: db.file,
|
model: db.files,
|
||||||
as: 'logo_images',
|
as: 'logo_images',
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
model: db.file,
|
model: db.files,
|
||||||
as: 'banner_images',
|
as: 'banner_images',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -367,7 +367,7 @@ module.exports = class Product_categoriesDBApi {
|
|||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
model: db.file,
|
model: db.files,
|
||||||
as: 'category_images',
|
as: 'category_images',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -460,7 +460,7 @@ module.exports = class ProductsDBApi {
|
|||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
model: db.file,
|
model: db.files,
|
||||||
as: 'product_images',
|
as: 'product_images',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -498,7 +498,7 @@ module.exports = class StoresDBApi {
|
|||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
model: db.file,
|
model: db.files,
|
||||||
as: 'store_images',
|
as: 'store_images',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -448,7 +448,7 @@ module.exports = class Support_ticketsDBApi {
|
|||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
model: db.file,
|
model: db.files,
|
||||||
as: 'attachment_files',
|
as: 'attachment_files',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -577,7 +577,7 @@ module.exports = class UsersDBApi {
|
|||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
model: db.file,
|
model: db.files,
|
||||||
as: 'avatar',
|
as: 'avatar',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -163,7 +163,7 @@ rating_count: {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
db.courier_profiles.hasMany(db.file, {
|
db.courier_profiles.hasMany(db.files, {
|
||||||
as: 'verification_files',
|
as: 'verification_files',
|
||||||
foreignKey: 'belongsToId',
|
foreignKey: 'belongsToId',
|
||||||
constraints: false,
|
constraints: false,
|
||||||
@ -173,7 +173,7 @@ rating_count: {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
db.courier_profiles.hasMany(db.file, {
|
db.courier_profiles.hasMany(db.files, {
|
||||||
as: 'profile_images',
|
as: 'profile_images',
|
||||||
foreignKey: 'belongsToId',
|
foreignKey: 'belongsToId',
|
||||||
constraints: false,
|
constraints: false,
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
module.exports = function(sequelize, DataTypes) {
|
module.exports = function(sequelize, DataTypes) {
|
||||||
const file = sequelize.define(
|
const file = sequelize.define(
|
||||||
'file',
|
'files',
|
||||||
{
|
{
|
||||||
id: {
|
id: {
|
||||||
type: DataTypes.UUID,
|
type: DataTypes.UUID,
|
||||||
@ -40,11 +40,11 @@ module.exports = function(sequelize, DataTypes) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
file.associate = (db) => {
|
file.associate = (db) => {
|
||||||
db.file.belongsTo(db.users, {
|
db.files.belongsTo(db.users, {
|
||||||
as: 'createdBy',
|
as: 'createdBy',
|
||||||
});
|
});
|
||||||
|
|
||||||
db.file.belongsTo(db.users, {
|
db.files.belongsTo(db.users, {
|
||||||
as: 'updatedBy',
|
as: 'updatedBy',
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@ -171,7 +171,7 @@ status: {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
db.merchant_profiles.hasMany(db.file, {
|
db.merchant_profiles.hasMany(db.files, {
|
||||||
as: 'logo_images',
|
as: 'logo_images',
|
||||||
foreignKey: 'belongsToId',
|
foreignKey: 'belongsToId',
|
||||||
constraints: false,
|
constraints: false,
|
||||||
@ -181,7 +181,7 @@ status: {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
db.merchant_profiles.hasMany(db.file, {
|
db.merchant_profiles.hasMany(db.files, {
|
||||||
as: 'banner_images',
|
as: 'banner_images',
|
||||||
foreignKey: 'belongsToId',
|
foreignKey: 'belongsToId',
|
||||||
constraints: false,
|
constraints: false,
|
||||||
|
|||||||
@ -119,7 +119,7 @@ is_active: {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
db.product_categories.hasMany(db.file, {
|
db.product_categories.hasMany(db.files, {
|
||||||
as: 'category_images',
|
as: 'category_images',
|
||||||
foreignKey: 'belongsToId',
|
foreignKey: 'belongsToId',
|
||||||
constraints: false,
|
constraints: false,
|
||||||
|
|||||||
@ -166,7 +166,7 @@ is_featured: {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
db.products.hasMany(db.file, {
|
db.products.hasMany(db.files, {
|
||||||
as: 'product_images',
|
as: 'product_images',
|
||||||
foreignKey: 'belongsToId',
|
foreignKey: 'belongsToId',
|
||||||
constraints: false,
|
constraints: false,
|
||||||
|
|||||||
@ -219,7 +219,7 @@ closed_at: {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
db.stores.hasMany(db.file, {
|
db.stores.hasMany(db.files, {
|
||||||
as: 'store_images',
|
as: 'store_images',
|
||||||
foreignKey: 'belongsToId',
|
foreignKey: 'belongsToId',
|
||||||
constraints: false,
|
constraints: false,
|
||||||
|
|||||||
@ -195,7 +195,7 @@ resolved_at: {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
db.support_tickets.hasMany(db.file, {
|
db.support_tickets.hasMany(db.files, {
|
||||||
as: 'attachment_files',
|
as: 'attachment_files',
|
||||||
foreignKey: 'belongsToId',
|
foreignKey: 'belongsToId',
|
||||||
constraints: false,
|
constraints: false,
|
||||||
|
|||||||
@ -276,7 +276,7 @@ provider: {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
db.users.hasMany(db.file, {
|
db.users.hasMany(db.files, {
|
||||||
as: 'avatar',
|
as: 'avatar',
|
||||||
foreignKey: 'belongsToId',
|
foreignKey: 'belongsToId',
|
||||||
constraints: false,
|
constraints: false,
|
||||||
|
|||||||
52
frontend/public/locales/en-US/common.json
Normal file
52
frontend/public/locales/en-US/common.json
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
{
|
||||||
|
"pages": {
|
||||||
|
"dashboard": {
|
||||||
|
"pageTitle": "Dashboard",
|
||||||
|
"overview": "Overview",
|
||||||
|
"loadingWidgets": "Loading widgets...",
|
||||||
|
"loading": "Loading..."
|
||||||
|
},
|
||||||
|
"login": {
|
||||||
|
"pageTitle": "Login",
|
||||||
|
|
||||||
|
"form": {
|
||||||
|
"loginLabel": "Login",
|
||||||
|
"loginHelp": "Please enter your login",
|
||||||
|
"passwordLabel": "Password",
|
||||||
|
"passwordHelp": "Please enter your password",
|
||||||
|
"remember": "Remember",
|
||||||
|
"forgotPassword": "Forgot password?",
|
||||||
|
"loginButton": "Login",
|
||||||
|
"loading": "Loading...",
|
||||||
|
"noAccountYet": "Don’t have an account yet?",
|
||||||
|
"newAccount": "New Account"
|
||||||
|
},
|
||||||
|
|
||||||
|
"pexels": {
|
||||||
|
"photoCredit": "Photo by {{photographer}} on Pexels",
|
||||||
|
"videoCredit": "Video by {{name}} on Pexels",
|
||||||
|
"videoUnsupported": "Your browser does not support the video tag."
|
||||||
|
},
|
||||||
|
|
||||||
|
"footer": {
|
||||||
|
"copyright": "© {{year}} {{title}}. All rights reserved",
|
||||||
|
"privacy": "Privacy Policy"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"components": {
|
||||||
|
"widgetCreator": {
|
||||||
|
"title": "Create Chart or Widget",
|
||||||
|
"helpText": "Describe your new widget or chart in natural language. For example: \"Number of admin users\" OR \"red chart with number of closed contracts grouped by month\"",
|
||||||
|
"settingsTitle": "Widget Creator Settings",
|
||||||
|
"settingsDescription": "What role are we showing and creating widgets for?",
|
||||||
|
"doneButton": "Done",
|
||||||
|
"loading": "Loading..."
|
||||||
|
},
|
||||||
|
"search": {
|
||||||
|
"placeholder": "Search",
|
||||||
|
"required": "Required",
|
||||||
|
"minLength": "Minimum length: {{count}} characters"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user