Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ntorionbearstudio committed Jan 12, 2021
0 parents commit 14157bd
Show file tree
Hide file tree
Showing 493 changed files with 78,977 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
132 changes: 132 additions & 0 deletions .badsenderrc-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
{
//////
// SMTP
//////

//----- classic configuration

"emailTransport": {
"host": "yoursmtpserver",
"port": "25",
"auth": { "user": "####", "pass": "####" }
},

//----- OR use https://github.com/nodemailer/nodemailer-wellknown

// "emailTransport": {
// "provider": "GandiMail",
// "auth": { "user": "####", "pass": "####" }
// },

//----- complementary informations

"emailOptions": {
"from": "Badsender local <[email protected]>" // sender address
},

//////
// STORAGE
//////

//----- local

// "storage": {
// "type": "local"
// },

//----- OR for using Amazon S3:

"storage": {
"type": "aws",
"aws": {
"accessKeyId": "20 characters key",
"secretAccessKey": "40 characters secret key",
"region": "ap-southeast-1",
"bucketName": "name of the bucket"
}
},

//----- complementary informations

"images": {
"tmpDir": "/tmp",
// in case case of local storage
"uploadDir": "/uploads",
// cache resized images & add cache-control to image request
"cache": false
},

//////
// GENERAL
//////

"host": "www.your-hostname-without-protocal.com",

"admin": {
"password": "admin"
},

// show complentary informations on the front-end

"debug": false,

//////
// DB CONNECTION
//////

"database": "mongodb:https://localhost/my_database",

//////
// DB COPY (only used for syncing DBs, see ./bin/db-sync)
//////

"dbConfigs": {
"local": {
"host": "localhost:27017",
"folder": "badsender"
},
"dev": {
"host": "localhost:27017",
"folder": "badsender_copy",
"user": "####",
"password": "####"
},
"stage": {
"host": "localhost:27017",
"folder": "badsender_copy",
"user": "####",
"password": "####"
},
"production": {
"host": "localhost:27017",
"folder": "badsender_copy",
"user": "####",
"password": "####"
}
},

//////
// S3 COPY (only used for syncing DBs, see ./bin/s3-sync)
//////

"s3Configs": {
"dev": {
"bucketName": "badsender",
"accessKeyId": "####",
"region": "####",
"secretAccessKey": "####"
},
"stage": {
"bucketName": "badsender-stage",
"accessKeyId": "####",
"region": "####",
"secretAccessKey": "####"
},
"production": {
"bucketName": "builder.badsender.com",
"accessKeyId": "####",
"region": "####",
"secretAccessKey": "####"
}
}
}
2 changes: 2 additions & 0 deletions .buildpacks
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
https://github.com/jontewks/puppeteer-heroku-buildpack.git
https://github.com/heroku/heroku-buildpack-nodejs.git
37 changes: 37 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:7.10

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4

working_directory: ~/repo

steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package-lock.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: npm install

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package-lock.json" }}

# run tests!
- run: npm test
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
npm-debug.log
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/bower_components
/node_modules
/uploads/**
!uploads/README.md
.tmp/**
!.tmp/README.md
/badsender-server/express-assets
/dist
/server-config.js
/release
/TODO.md
/build/maintenance-pages

/.cache
/.mongodb
/.nuxt
/badsender-api-documentation
/server/maintenance-pages/*.html
/s3-*
/tests/ava/snapshots
/tmp/**
.badsenderrc
.DS_Store
.lagardererc
npm-debug.log
yarn-error.log
*.orig
/TODO.md
25 changes: 25 additions & 0 deletions .gitignore-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/.cache
/.circleci
/.mongodb
/.vscode
/backend
/bin
/build
/spec
/src
/tasks
/tests
/tmp
/uploads
/.*
!.gitignore
/*.js
!/index.js
/*.json
!/package.json
/*.md
/LICENSE
/*.log
.DS_Store
/s3-*
/TODO.md
6 changes: 6 additions & 0 deletions .jsbeautifyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"js": {
"indent_with_tabs": false,
"indent_size": 2,
}
}
8 changes: 8 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"-W097": false,
"-W069": false,
"globals": {
"require": false,
"module": false
}
}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10.16.0
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
src/js/**/*.js
*.html

!/src/js/**/badsender-*.js
src/js/converter/badsender-editor.js
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
}
2 changes: 2 additions & 0 deletions .profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export DISPLAY=':99.0'
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: node_js
node_js:
- "8"
- "7"
- "6"
before_install:
- npm install -g grunt-cli
- npm install -g codecov
install:
- npm install
script:
- npm test
- codecov
57 changes: 57 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"files.associations": {
".badsenderrc-example": "jsonc",
".badsenderrc": "jsonc",
".lagardererc": "jsonc",
"Dockerfile*": "dockerfile"
},
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"editor.tabSize": 2,
"editor.formatOnSave": true,
"path-intellisense.mappings": {
"~": "${workspaceRoot}/badsender-server"
},
"vetur.validation.template": false,
"cSpell.ignorePaths": [
"**/package-lock.json",
"**/node_modules/**",
"**/vscode-extension/**",
"**/.git/**",
"**/dist/**",
".vscode",
"typings"
],
"cSpell.words": [
"Badsender's",
"Lagardere",
"Selligent",
"Unarchiver",
"Unprocessable",
"Verdana",
"Vuetify",
"badsender",
"badsenderrc",
"blueimp",
"croppie",
"errored",
"fileupload",
"forcessl",
"gifsicle",
"heroku",
"ifnot",
"lazypipe",
"mosaico",
"mosaico's",
"promisify",
"scrollfix",
"snackbar",
"speakingurl",
"tinymce",
"tmpl",
"tooltabs",
"virtuals",
"wireframe",
"wireframes"
]
}
38 changes: 38 additions & 0 deletions .vscode/vue-file.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
// Place your badsender-mosaico workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
"Badsender Vue Component": {
"scope": "vue",
"prefix": "bsvue",
"body": [
"<script>",
"export default {",
"\tname: `bs-${1:componentName}`,",
"}",
"</script>",
"",
"<template>",
"\t<div class=\"bs-${1:componentName}\"></div>",
"</template>",
"",
"<style lang=\"scss\" scoped>",
".bs-${1:componentName} {",
"}",
"</style>",
"",
"<i18n>",
"{",
"\t\"en\": {},",
"\t\"fr\": {}",
"}",
"</i18n>",
""
],
"description": "Create a basic Vue component"
}
}
9 changes: 9 additions & 0 deletions Aptfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
xvfb
x11-xkb-utils
xfonts-100dpi
xfonts-75dpi
xfonts-scalable
xfonts-cyrillic
libxfont1
libnotify4
libxss1
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: yarn start
Loading

0 comments on commit 14157bd

Please sign in to comment.