diff --git a/web/ASC.Web.Campaigns/.firebaserc b/web/ASC.Web.Campaigns/.firebaserc new file mode 100644 index 0000000000..b31a1ffde5 --- /dev/null +++ b/web/ASC.Web.Campaigns/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "appserver-c011a" + } +} diff --git a/web/ASC.Web.Campaigns/.gitignore b/web/ASC.Web.Campaigns/.gitignore new file mode 100644 index 0000000000..dbb58ffbfa --- /dev/null +++ b/web/ASC.Web.Campaigns/.gitignore @@ -0,0 +1,66 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +firebase-debug.log* +firebase-debug.*.log* + +# Firebase cache +.firebase/ + +# Firebase config + +# Uncomment this if you'd like others to create their own Firebase project. +# For a team working on the same Firebase project(s), it is recommended to leave +# it commented so all members can deploy to the same project(s) in .firebaserc. +# .firebaserc + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env diff --git a/web/ASC.Web.Campaigns/firebase.json b/web/ASC.Web.Campaigns/firebase.json new file mode 100644 index 0000000000..6e90af4d14 --- /dev/null +++ b/web/ASC.Web.Campaigns/firebase.json @@ -0,0 +1,26 @@ +{ + "hosting": { + "public": "public", + "headers": [ + { + "source": "**", + "headers": [ + { + "key": "Access-Control-Allow-Origin", + "value": "*" + } + ] + }, + { + "source": "**/*.@(png|json)", + "headers": [ + { + "key": "Cache-Control", + "value": "max-age=7200" + } + ] + } + ], + "ignore": ["firebase.json", "**/node_modules/**"] + } +} diff --git a/web/ASC.Web.Campaigns/package.json b/web/ASC.Web.Campaigns/package.json new file mode 100644 index 0000000000..a1b745462a --- /dev/null +++ b/web/ASC.Web.Campaigns/package.json @@ -0,0 +1,12 @@ +{ + "name": "@appserver/campaigns", + "version": "0.1.0", + "private": true, + "scripts": { + "firebase:login": "firebase login", + "firebase:deploy": "firebase deploy" + }, + "dependencies": { + "firebase-tools": "^10.2.0" + } +} diff --git a/web/ASC.Web.Campaigns/public/404.html b/web/ASC.Web.Campaigns/public/404.html new file mode 100644 index 0000000000..829eda8fdc --- /dev/null +++ b/web/ASC.Web.Campaigns/public/404.html @@ -0,0 +1,33 @@ + + +
+ + +The specified file was not found on this website. Please check the URL for mistakes and try again.
+This page was generated by the Firebase Command-Line Interface. To modify it, edit the 404.html
file in your project's configured public
directory.
You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!
+ Open Hosting Documentation +Firebase SDK Loading…
+ + + + diff --git a/web/ASC.Web.Campaigns/public/locales/en/ CampaignPersonalEducation.json b/web/ASC.Web.Campaigns/public/locales/en/ CampaignPersonalEducation.json new file mode 100644 index 0000000000..9bb6588eba --- /dev/null +++ b/web/ASC.Web.Campaigns/public/locales/en/ CampaignPersonalEducation.json @@ -0,0 +1,6 @@ +{ + "Header": "ONLYOFFICE for schools", + "SubHeader": "Learn about education discounts", + "ButtonLabel": "Learn more", + "Link": "https://www.onlyoffice.com/education.aspx?utm_source=personal&utm_campaign=BannerPersonalEducation" +} diff --git a/web/ASC.Web.Campaigns/public/locales/en/CampaignPersonalCloud.json b/web/ASC.Web.Campaigns/public/locales/en/CampaignPersonalCloud.json new file mode 100644 index 0000000000..4ad7c5f06f --- /dev/null +++ b/web/ASC.Web.Campaigns/public/locales/en/CampaignPersonalCloud.json @@ -0,0 +1,6 @@ +{ + "Header": "ONLYOFFICE for business", + "SubHeader": "Docs, projects, clients & emails", + "ButtonLabel": "Start free trial", + "Link": "https://www.onlyoffice.com/registration.aspx?utm_source=personal&utm_campaign=BannerPersonalCloud" +} diff --git a/web/ASC.Web.Campaigns/public/locales/en/CampaignPersonalDesktop.json b/web/ASC.Web.Campaigns/public/locales/en/CampaignPersonalDesktop.json new file mode 100644 index 0000000000..2162ac2607 --- /dev/null +++ b/web/ASC.Web.Campaigns/public/locales/en/CampaignPersonalDesktop.json @@ -0,0 +1,6 @@ +{ + "Header": "ONLYOFFICE for PC", + "SubHeader": "Get a free alternative to MS Office", + "ButtonLabel": "Download", + "Link": "https://www.onlyoffice.com/download-desktop.aspx?utm_source=personal&utm_campaign=BannerPersonalDesktop" +} diff --git a/web/ASC.Web.Campaigns/public/locales/ru/CampaignPersonalCloud.json b/web/ASC.Web.Campaigns/public/locales/ru/CampaignPersonalCloud.json new file mode 100644 index 0000000000..15dd4b3f50 --- /dev/null +++ b/web/ASC.Web.Campaigns/public/locales/ru/CampaignPersonalCloud.json @@ -0,0 +1,6 @@ +{ + "Header": "ONLYOFFICE для бизнеса", + "SubHeader": "Документы, проекты, клиенты и почта", + "ButtonLabel": "Начните бесплатно", + "Link": "https://www.onlyoffice.com/ru/registration.aspx?utm_source=personal&utm_campaign=BannerPersonalCloud" +} diff --git a/web/ASC.Web.Campaigns/public/locales/ru/CampaignPersonalDesktop.json b/web/ASC.Web.Campaigns/public/locales/ru/CampaignPersonalDesktop.json new file mode 100644 index 0000000000..bcc498a35f --- /dev/null +++ b/web/ASC.Web.Campaigns/public/locales/ru/CampaignPersonalDesktop.json @@ -0,0 +1,6 @@ +{ + "Header": "ONLYOFFICE для ПК", + "SubHeader": "Получите бесплатную альтернативу MS Office", + "ButtonLabel": "Скачать", + "Link": "https://www.onlyoffice.com/ru/download-desktop.aspx?utm_source=personal&utm_campaign=BannerPersonalDesktop" +} diff --git a/web/ASC.Web.Campaigns/public/locales/ru/CampaignPersonalEducation.json b/web/ASC.Web.Campaigns/public/locales/ru/CampaignPersonalEducation.json new file mode 100644 index 0000000000..f86e0cc2af --- /dev/null +++ b/web/ASC.Web.Campaigns/public/locales/ru/CampaignPersonalEducation.json @@ -0,0 +1,6 @@ +{ + "Header": "ONLYOFFICE для школ", + "SubHeader": "Узнайте больше об образовательных скидках", + "ButtonLabel": "Узнать больше", + "Link": "https://www.onlyoffice.com/ru/education.aspx?utm_source=personal&utm_campaign=BannerPersonalEducation" +}