├── .editorconfig ├── .eslintrc.js ├── .gitignore ├── LICENSE ├── README.md ├── assets └── README.md ├── bucket.json ├── common └── request.js ├── components ├── AppLogo.vue ├── README.md └── partials │ ├── footer.vue │ └── header.vue ├── config ├── config.js └── env.js ├── layouts ├── README.md ├── default.vue └── error.vue ├── middleware └── README.md ├── nuxt.config.js ├── package-lock.json ├── package.json ├── pages ├── README.md ├── _name.vue ├── about-us.vue ├── blog │ ├── _id.vue │ └── index.vue ├── contact.vue ├── faqs.vue ├── index.vue └── search.vue ├── plugins └── README.md ├── screenshots └── main-image.png ├── static ├── README.md ├── favicon.ico ├── img_avatar3.png └── md.png └── store ├── README.md └── index.js /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_size = 2 6 | indent_style = space 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | 12 | [*.md] 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { 4 | browser: true, 5 | node: true 6 | }, 7 | parserOptions: { 8 | parser: 'babel-eslint' 9 | }, 10 | extends: [ 11 | // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention 12 | // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules. 13 | 'plugin:vue/essential' 14 | ], 15 | // required to lint *.vue files 16 | plugins: [ 17 | 'vue' 18 | ], 19 | // add your custom rules here 20 | rules: {} 21 | } 22 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # dependencies 2 | node_modules 3 | 4 | # logs 5 | npm-debug.log 6 | 7 | # Nuxt build 8 | .nuxt 9 | 10 | # Nuxt generate 11 | dist 12 | .env -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Cosmic JS 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Nuxt.js Website Boilerplate 2 | 3 | ![nuxtjs-website-boilerplate](https://cosmic-s3.imgix.net/f761b6c0-31c3-11e8-b70e-833ed2e4b04d-nuxtjs-cosmicjs.jpg) 4 | A website template that satisfies some common website requirements including dynamic pages, blog articles, author management, SEO ability, contact form and website search. Contributions welcome! 5 | 6 | ## Demo 7 | [Click here to view the demo](https://cosmicjs.com/apps/nuxtjs-website-boilerplate) 8 | 9 | > [Read how this app was built](https://cosmicjs.com/articles/nuxtjs-website-boilerplate-jezdxaxb) 10 | 11 | ## Features 12 | 1. Fully responsive down to mobile w/ [Bootstrap](http://getbootstrap.com) frontend
13 | 2. SEO ready
14 | 3. A contact form that sends an email to your email(s) of choice and to [Cosmic JS](https://cosmicjs.com) for easy reference
15 | 4. Full-site search functionality
16 | 5. All content is easily managed in [Cosmic JS](https://cosmicjs.com) including pages, blog and contact info. 17 | 18 | Sign up for [Cosmic JS](https://cosmicjs.com) to install the demo content and deploy this website. 19 | 20 | ## Getting Started 21 | 22 | ```bash 23 | git clone https://github.com/cosmicjs/nuxtjs-website-boilerplate 24 | cd nuxtjs-website-boilerplate 25 | npm install 26 | 27 | # Run in development and serve at localhost:3000 28 | npm run dev 29 | 30 | # build for production 31 | npm run build 32 | 33 | # Run in production and serve at localhost:3000 34 | COSMIC_BUCKET=your-bucket-slug npm start 35 | ``` 36 | Import the `bucket.json` file into your Cosmic JS Bucket. To do this go to Your Bucket > Settings > Import / Export Data. 37 | 38 | 39 | 40 | ## Contact form setup 41 | Install and deploy the SendGrid Email Function. 42 | 43 | 44 | 45 | The contact form on the contact page uses the [SendGrid Email Function](https://github.com/cosmicjs/send-email-function) to send emails. To deploy your email function go to Your Bucket > Settings > Functions. Install and deploy the SendGrid Function. You will need an account with [SendGrid](https://sendgrid.com/) to add your SendGrid API key. 46 | 47 | ### Add the SendGrid Function Endpoint 48 | 49 | #### in development 50 | Go to `config/index.js` and edit `SENDGRID_FUNCTION_ENDPOINT` to manually add the URL for testing. 51 | 52 | #### in production 53 | If you are using the Web Hosting option that's included with every Bucket: 54 | 1. Go to Your Bucket > Settings > Web Hosting 55 | 2. Deploy your Website 56 | 3. Click 'Set Environment Variables' tab and add the SendGrid Function endpoint: 57 | 58 | Key | Value 59 | --- | --- 60 | | SENDGRID_FUNCTION_ENDPOINT | https://your-lambda-endpoint.amazonaws.com/dev/send-email 61 | -------------------------------------------------------------------------------- /assets/README.md: -------------------------------------------------------------------------------- 1 | # ASSETS 2 | 3 | This directory contains your un-compiled assets such as LESS, SASS, or JavaScript. 4 | 5 | More information about the usage of this directory in the documentation: 6 | https://nuxtjs.org/guide/assets#webpacked 7 | 8 | **This directory is not required, you can delete it if you don't want to use it.** 9 | -------------------------------------------------------------------------------- /bucket.json: -------------------------------------------------------------------------------- 1 | {"bucket":{"_id":"5aa9219e86e37313dc96a64e","slug":"medical-professional-nuxt-js","title":"Medical Professional Nuxt Js","object_types":[{"title":"Globals","slug":"globals","singular":"Global","metafields":[],"options":{"slug_field":1,"content_editor":0,"add_metafields":0,"metafields_title":0,"metafields_key":0},"localization":false,"locales":""},{"title":"Pages","slug":"pages","singular":"Page","metafields":[{"edit":1,"value":"This is the SEO description. Keep it short.","key":"seo_description","title":"SEO Description","type":"textarea","children":null}],"options":{"slug_field":1,"content_editor":1,"add_metafields":0,"metafields_title":0,"metafields_key":0},"localization":false,"locales":""},{"title":"Blogs","slug":"blogs","singular":"Blog","metafields":[{"value":"","key":"hero","title":"Hero","type":"file","children":false},{"edit":1,"value":"","key":"teaser","title":"Teaser","type":"textarea","children":null},{"value":"This is the SEO description. Keep it short.","key":"seo_description","title":"SEO Description","type":"textarea","children":false},{"object_type":"authors","value":"","key":"author","title":"Author","type":"object","children":false}],"options":{"slug_field":1,"content_editor":1,"add_metafields":0,"metafields_title":0,"metafields_key":0},"localization":false,"locales":""},{"title":"Form Submissions","slug":"form-submissions","singular":"Form Submission","metafields":[],"options":{"slug_field":1,"content_editor":1,"add_metafields":0,"metafields_title":0,"metafields_key":0},"localization":false,"locales":""},{"title":"Authors","slug":"authors","singular":"Author","metafields":[{"edit":1,"value":"","key":"image","title":"Image","type":"file","children":null}],"options":{"slug_field":1,"content_editor":1,"add_metafields":1,"metafields_title":1,"metafields_key":1}}],"links":[],"objects":[{"_id":"5aa921fe86e37313dc96a656","old_id":"5a9d384785e79769d995433a","bucket":"5aa9219e86e37313dc96a64e","slug":"chad-henly","title":"Chad Henly","content":"","metafields":[{"value":"2c9b41c0-52a6-11e6-a069-734be6eb1ef6-doc.png","key":"image","title":"Image","type":"file","children":false}],"type_slug":"authors","created":"2018-03-14T13:22:06.579Z","created_at":"2018-03-14T13:22:06.579Z","user_id":"5982e43580aaa862200007ac","options":{"slug_field":1,"content_editor":1},"order":0,"status":"published"},{"_id":"5aa921fe86e37313dc96a657","old_id":"5a9d384785e79769d9954339","bucket":"5aa9219e86e37313dc96a64e","slug":"contact-form","title":"Contact Form","content":"","metafields":[{"edit":1,"value":"tony@cosmicjs.com","key":"to","title":"To","type":"text","children":null},{"edit":1,"value":"A new form submission on your website","key":"subject","title":"Subject","type":"text","children":null}],"type_slug":"globals","created":"2018-03-14T13:22:06.581Z","created_at":"2018-03-14T13:22:06.581Z","user_id":"5982e43580aaa862200007ac","options":{"slug_field":1,"content_editor":0},"order":0,"status":null},{"_id":"5aa921fe86e37313dc96a658","old_id":"5a9d384785e79769d995433b","bucket":"5aa9219e86e37313dc96a64e","slug":"a-very-important-topic-your-health","title":"A Very Important Topic: Your Health","content":"

Aerobic activity alcoholism animal dander arthritis body type certified diabetes educators (cdes) diagnosis ear canal external otitis genes glucagon growth hormone hormone ibuprofen joints keratin ketones myopia nebulizer optometrist retina rheumatologist sternutation varicella zoster violence virus. Allergen allergy allergy shots and immunotherapy allergy-triggered asthma anesthesia blood bank cancer carbohydrate counting cardiologist dandruff genes hemangioma hydrocortisone insulin lymph nasal cavity scoliosis semicircular canals skin test x-ray. Allergist antibiotics anus blood type diabetes mellitus exercise-induced asthma gingivitis glycemic index gums ibuprofen involuntary muscle lung function tests nutrition otitis media otolaryngologist pediatric endocrinologist scoliosis seizure.

Alignment astigmatism astringents blood bank blood type bronchial tubes cancer cerumen dermatologist emotions enuresis fracture heredity humidifier keratin lacrimal glands optician optometrist peak flow meter pneumonia rx scar sphenopalatineganglioneuralgia stethoscope urticaria vertebrae virus whitehead. Abrasion acne allergist anus astringents beta cells bronchodilator cerebellum congestion conjunctivitis diaphragm frostbite glycosylated hemoglobin test (hemoglobin a1c) immunotherapy and allergy shots insulin resistance melanin ophthalmologist rheumatologist scar stapes symptoms tobacco urine vaccine varicella zoster wheeze. Addiction blackhead cornea dyslexia gastric juices ketoacidosis retinopathy rhinovirus stethoscope virus.

Airway obstruction alcoholism alignment amputate anus bone marrow braces bronchodilator caries ear canal enuresis farsighted frenulum frostbite hydrogen peroxide hyperopia involuntary muscle iv ketones larynx microscope nutrition perspiration pinna social worker ultrasound urinalysis violence virus. Alignment anesthesia body type bone marrow chromosomes corticosteroids dehydration dna exercise-induced asthma external otitis fats frostbite gastroenteritis genes gluteus maximus hormone hyperglycemia influenza malocclusion petroleum jelly prosthesis sclera taste buds triggers. Abrasion conjunctivitis dust mites dyslexia genes genetics growth hormone laparoscopy nearsighted optician saliva skin test social worker strep screen triggers.

Cancer cardiologist chromosomes cone ct scan or cat scan dust mites glycogen hormone icu immunizations lymph node mucus pediatric endocrinologist polyphagia saliva stress sulfites tinnitus triggers. Biopsy bronchial tubes bronchoconstriction certified diabetes educators (cdes) dandruff diarrhea enamel er fluoride gingivitis icu lymph node occupational therapy oncologist optometrist rheumatologist tobacco triggers ultrasound urticaria vaccine vertebrae. Allergen allergy shots and immunotherapy body type bronchoconstriction bruise dermatologist diagnosis eczema exercise-induced asthma gastric juices genetics gluteus maximus hydrogen peroxide immunizations insulin lymph node nebulizer sphenopalatineganglioneuralgia spirometer stress suture umbilical cord.

Carbohydrate counting ct scan or cat scan diagnosis er genes humidifier ketoacidosis night guard pupil retractions sulfites virus. Allergen antihistamines braces cerebellum chronic congestion decongestants eustachian tube floss genetics hematoma hydrogen peroxide hyperopia lacrimal glands optometrist sebaceous glands skin test social worker sphenopalatineganglioneuralgia suture urinalysis urticaria violence. Antibiotics arteries and veins eeg (electroencephalogram) gastroenteritis hyperopia ibuprofen insulin injections ketones laxatives nephropathy nervous system rhinovirus stapes taste buds. Bruxism cardiologist cornea heredity insulin resistance involuntary muscle occupational therapist optician pulmonologist skin test.

","metafields":[{"value":"71f30d70-52d3-11e6-a069-734be6eb1ef6-shutterstock_208763188.png","key":"hero","title":"Hero","type":"file","children":false},{"value":"This is the SEO description. Keep it short.","key":"seo_description","title":"SEO Description","type":"textarea","children":false},{"object_type":"authors","value":"5aa921fe86e37313dc96a656","key":"author","title":"Author","type":"object","children":false},{"value":"Aerobic activity alcoholism animal dander arthritis body type certified diabetes educators (cdes) diagnosis ear canal external otitis genes glucagon growth hormone hormone ibuprofen joints keratin ketones myopia nebulizer optometrist retina rheumatologist sternutation varicella zoster violence virus.","key":"teaser","title":"Teaser","type":"textarea","children":false}],"type_slug":"blogs","created":"2018-03-14T13:22:06.582Z","created_at":"2018-03-14T13:22:06.582Z","user_id":"5982e43580aaa862200007ac","options":{"slug_field":1,"content_editor":1},"order":0,"status":"published"},{"_id":"5aa921fe86e37313dc96a659","old_id":"5a9d384785e79769d995433c","bucket":"5aa9219e86e37313dc96a64e","slug":"new-york-medical-services","title":"New York Medical Services","content":"

Aerobic activity alcoholism animal dander arthritis body type certified diabetes educators (cdes) diagnosis ear canal external otitis genes glucagon growth hormone hormone ibuprofen joints keratin ketones myopia nebulizer optometrist retina rheumatologist sternutation varicella zoster violence virus. Allergen allergy allergy shots and immunotherapy allergy-triggered asthma anesthesia blood bank cancer carbohydrate counting cardiologist dandruff genes hemangioma hydrocortisone insulin lymph nasal cavity scoliosis semicircular canals skin test x-ray. Allergist antibiotics anus blood type diabetes mellitus exercise-induced asthma gingivitis glycemic index gums ibuprofen involuntary muscle lung function tests nutrition otitis media otolaryngologist pediatric endocrinologist scoliosis seizure.

Alignment astigmatism astringents blood bank blood type bronchial tubes cancer cerumen dermatologist emotions enuresis fracture heredity humidifier keratin lacrimal glands optician optometrist peak flow meter pneumonia rx scar sphenopalatineganglioneuralgia stethoscope urticaria vertebrae virus whitehead. Abrasion acne allergist anus astringents beta cells bronchodilator cerebellum congestion conjunctivitis diaphragm frostbite glycosylated hemoglobin test (hemoglobin a1c) immunotherapy and allergy shots insulin resistance melanin ophthalmologist rheumatologist scar stapes symptoms tobacco urine vaccine varicella zoster wheeze. Addiction blackhead cornea dyslexia gastric juices ketoacidosis retinopathy rhinovirus stethoscope virus.

Airway obstruction alcoholism alignment amputate anus bone marrow braces bronchodilator caries ear canal enuresis farsighted frenulum frostbite hydrogen peroxide hyperopia involuntary muscle iv ketones larynx microscope nutrition perspiration pinna social worker ultrasound urinalysis violence virus. Alignment anesthesia body type bone marrow chromosomes corticosteroids dehydration dna exercise-induced asthma external otitis fats frostbite gastroenteritis genes gluteus maximus hormone hyperglycemia influenza malocclusion petroleum jelly prosthesis sclera taste buds triggers. Abrasion conjunctivitis dust mites dyslexia genes genetics growth hormone laparoscopy nearsighted optician saliva skin test social worker strep screen triggers.

Cancer cardiologist chromosomes cone ct scan or cat scan dust mites glycogen hormone icu immunizations lymph node mucus pediatric endocrinologist polyphagia saliva stress sulfites tinnitus triggers. Biopsy bronchial tubes bronchoconstriction certified diabetes educators (cdes) dandruff diarrhea enamel er fluoride gingivitis icu lymph node occupational therapy oncologist optometrist rheumatologist tobacco triggers ultrasound urticaria vaccine vertebrae. Allergen allergy shots and immunotherapy body type bronchoconstriction bruise dermatologist diagnosis eczema exercise-induced asthma gastric juices genetics gluteus maximus hydrogen peroxide immunizations insulin lymph node nebulizer sphenopalatineganglioneuralgia spirometer stress suture umbilical cord.

Carbohydrate counting ct scan or cat scan diagnosis er genes humidifier ketoacidosis night guard pupil retractions sulfites virus. Allergen antihistamines braces cerebellum chronic congestion decongestants eustachian tube floss genetics hematoma hydrogen peroxide hyperopia lacrimal glands optometrist sebaceous glands skin test social worker sphenopalatineganglioneuralgia suture urinalysis urticaria violence. Antibiotics arteries and veins eeg (electroencephalogram) gastroenteritis hyperopia ibuprofen insulin injections ketones laxatives nephropathy nervous system rhinovirus stapes taste buds. Bruxism cardiologist cornea heredity insulin resistance involuntary muscle occupational therapist optician pulmonologist skin test.

","metafields":[{"value":"This is the SEO description. Keep it short.","key":"seo_description","title":"SEO Description","type":"textarea","children":false}],"type_slug":"pages","created":"2018-03-14T13:22:06.584Z","created_at":"2018-03-14T13:22:06.584Z","user_id":"5982e43580aaa862200007ac","options":{"slug_field":1,"content_editor":1},"order":0,"status":"published"},{"_id":"5aa921fe86e37313dc96a65a","old_id":"5a9d384785e79769d995433d","bucket":"5aa9219e86e37313dc96a64e","slug":"los-angeles-medical-services","title":"Los Angeles Medical Services","content":"

Aerobic activity alcoholism animal dander arthritis body type certified diabetes educators (cdes) diagnosis ear canal external otitis genes glucagon growth hormone hormone ibuprofen joints keratin ketones myopia nebulizer optometrist retina rheumatologist sternutation varicella zoster violence virus. Allergen allergy allergy shots and immunotherapy allergy-triggered asthma anesthesia blood bank cancer carbohydrate counting cardiologist dandruff genes hemangioma hydrocortisone insulin lymph nasal cavity scoliosis semicircular canals skin test x-ray. Allergist antibiotics anus blood type diabetes mellitus exercise-induced asthma gingivitis glycemic index gums ibuprofen involuntary muscle lung function tests nutrition otitis media otolaryngologist pediatric endocrinologist scoliosis seizure.

Alignment astigmatism astringents blood bank blood type bronchial tubes cancer cerumen dermatologist emotions enuresis fracture heredity humidifier keratin lacrimal glands optician optometrist peak flow meter pneumonia rx scar sphenopalatineganglioneuralgia stethoscope urticaria vertebrae virus whitehead. Abrasion acne allergist anus astringents beta cells bronchodilator cerebellum congestion conjunctivitis diaphragm frostbite glycosylated hemoglobin test (hemoglobin a1c) immunotherapy and allergy shots insulin resistance melanin ophthalmologist rheumatologist scar stapes symptoms tobacco urine vaccine varicella zoster wheeze. Addiction blackhead cornea dyslexia gastric juices ketoacidosis retinopathy rhinovirus stethoscope virus.

Airway obstruction alcoholism alignment amputate anus bone marrow braces bronchodilator caries ear canal enuresis farsighted frenulum frostbite hydrogen peroxide hyperopia involuntary muscle iv ketones larynx microscope nutrition perspiration pinna social worker ultrasound urinalysis violence virus. Alignment anesthesia body type bone marrow chromosomes corticosteroids dehydration dna exercise-induced asthma external otitis fats frostbite gastroenteritis genes gluteus maximus hormone hyperglycemia influenza malocclusion petroleum jelly prosthesis sclera taste buds triggers. Abrasion conjunctivitis dust mites dyslexia genes genetics growth hormone laparoscopy nearsighted optician saliva skin test social worker strep screen triggers.

Cancer cardiologist chromosomes cone ct scan or cat scan dust mites glycogen hormone icu immunizations lymph node mucus pediatric endocrinologist polyphagia saliva stress sulfites tinnitus triggers. Biopsy bronchial tubes bronchoconstriction certified diabetes educators (cdes) dandruff diarrhea enamel er fluoride gingivitis icu lymph node occupational therapy oncologist optometrist rheumatologist tobacco triggers ultrasound urticaria vaccine vertebrae. Allergen allergy shots and immunotherapy body type bronchoconstriction bruise dermatologist diagnosis eczema exercise-induced asthma gastric juices genetics gluteus maximus hydrogen peroxide immunizations insulin lymph node nebulizer sphenopalatineganglioneuralgia spirometer stress suture umbilical cord.

Carbohydrate counting ct scan or cat scan diagnosis er genes humidifier ketoacidosis night guard pupil retractions sulfites virus. Allergen antihistamines braces cerebellum chronic congestion decongestants eustachian tube floss genetics hematoma hydrogen peroxide hyperopia lacrimal glands optometrist sebaceous glands skin test social worker sphenopalatineganglioneuralgia suture urinalysis urticaria violence. Antibiotics arteries and veins eeg (electroencephalogram) gastroenteritis hyperopia ibuprofen insulin injections ketones laxatives nephropathy nervous system rhinovirus stapes taste buds. Bruxism cardiologist cornea heredity insulin resistance involuntary muscle occupational therapist optician pulmonologist skin test.

","metafields":[{"value":"This is the SEO description. Keep it short.","key":"seo_description","title":"SEO Description","type":"textarea","children":false}],"type_slug":"pages","created":"2018-03-14T13:22:06.585Z","created_at":"2018-03-14T13:22:06.585Z","user_id":"5982e43580aaa862200007ac","options":{"slug_field":1,"content_editor":1},"order":1,"status":"published"},{"_id":"5aa921fe86e37313dc96a65b","old_id":"5a9d384785e79769d995433e","bucket":"5aa9219e86e37313dc96a64e","slug":"chicago-medical-services","title":"Chicago Medical Services","content":"

Aerobic activity alcoholism animal dander arthritis body type certified diabetes educators (cdes) diagnosis ear canal external otitis genes glucagon growth hormone hormone ibuprofen joints keratin ketones myopia nebulizer optometrist retina rheumatologist sternutation varicella zoster violence virus. Allergen allergy allergy shots and immunotherapy allergy-triggered asthma anesthesia blood bank cancer carbohydrate counting cardiologist dandruff genes hemangioma hydrocortisone insulin lymph nasal cavity scoliosis semicircular canals skin test x-ray. Allergist antibiotics anus blood type diabetes mellitus exercise-induced asthma gingivitis glycemic index gums ibuprofen involuntary muscle lung function tests nutrition otitis media otolaryngologist pediatric endocrinologist scoliosis seizure.

Alignment astigmatism astringents blood bank blood type bronchial tubes cancer cerumen dermatologist emotions enuresis fracture heredity humidifier keratin lacrimal glands optician optometrist peak flow meter pneumonia rx scar sphenopalatineganglioneuralgia stethoscope urticaria vertebrae virus whitehead. Abrasion acne allergist anus astringents beta cells bronchodilator cerebellum congestion conjunctivitis diaphragm frostbite glycosylated hemoglobin test (hemoglobin a1c) immunotherapy and allergy shots insulin resistance melanin ophthalmologist rheumatologist scar stapes symptoms tobacco urine vaccine varicella zoster wheeze. Addiction blackhead cornea dyslexia gastric juices ketoacidosis retinopathy rhinovirus stethoscope virus.

Airway obstruction alcoholism alignment amputate anus bone marrow braces bronchodilator caries ear canal enuresis farsighted frenulum frostbite hydrogen peroxide hyperopia involuntary muscle iv ketones larynx microscope nutrition perspiration pinna social worker ultrasound urinalysis violence virus. Alignment anesthesia body type bone marrow chromosomes corticosteroids dehydration dna exercise-induced asthma external otitis fats frostbite gastroenteritis genes gluteus maximus hormone hyperglycemia influenza malocclusion petroleum jelly prosthesis sclera taste buds triggers. Abrasion conjunctivitis dust mites dyslexia genes genetics growth hormone laparoscopy nearsighted optician saliva skin test social worker strep screen triggers.

Cancer cardiologist chromosomes cone ct scan or cat scan dust mites glycogen hormone icu immunizations lymph node mucus pediatric endocrinologist polyphagia saliva stress sulfites tinnitus triggers. Biopsy bronchial tubes bronchoconstriction certified diabetes educators (cdes) dandruff diarrhea enamel er fluoride gingivitis icu lymph node occupational therapy oncologist optometrist rheumatologist tobacco triggers ultrasound urticaria vaccine vertebrae. Allergen allergy shots and immunotherapy body type bronchoconstriction bruise dermatologist diagnosis eczema exercise-induced asthma gastric juices genetics gluteus maximus hydrogen peroxide immunizations insulin lymph node nebulizer sphenopalatineganglioneuralgia spirometer stress suture umbilical cord.

Carbohydrate counting ct scan or cat scan diagnosis er genes humidifier ketoacidosis night guard pupil retractions sulfites virus. Allergen antihistamines braces cerebellum chronic congestion decongestants eustachian tube floss genetics hematoma hydrogen peroxide hyperopia lacrimal glands optometrist sebaceous glands skin test social worker sphenopalatineganglioneuralgia suture urinalysis urticaria violence. Antibiotics arteries and veins eeg (electroencephalogram) gastroenteritis hyperopia ibuprofen insulin injections ketones laxatives nephropathy nervous system rhinovirus stapes taste buds. Bruxism cardiologist cornea heredity insulin resistance involuntary muscle occupational therapist optician pulmonologist skin test.

","metafields":[{"value":"This is the SEO description. Keep it short.","key":"seo_description","title":"SEO Description","type":"textarea","children":false}],"type_slug":"pages","created":"2018-03-14T13:22:06.586Z","created_at":"2018-03-14T13:22:06.586Z","user_id":"5982e43580aaa862200007ac","options":{"slug_field":1,"content_editor":1},"order":2,"status":"published"},{"_id":"5aa921fe86e37313dc96a65c","old_id":"5a9d384785e79769d995433f","bucket":"5aa9219e86e37313dc96a64e","slug":"header","title":"Header","content":"","metafields":[{"value":"991f6b90-51c1-11e6-9e30-fb7e1b19bdc0-Screen Shot 2016-07-24 at 12.10.24 PM.png","key":"logo","title":"Logo","type":"file","children":false},{"value":"Medicenter | Your one-stop shop for all medical needs","key":"site_title","title":"Site Title","type":"text","children":false},{"value":"0713f190-51ca-11e6-9e30-fb7e1b19bdc0-Screen Shot 2016-07-24 at 1.11.05 PM.png","key":"favicon","title":"Favicon","type":"file","children":false}],"type_slug":"globals","created":"2018-03-14T13:22:06.587Z","created_at":"2018-03-14T13:22:06.587Z","user_id":"5982e43580aaa862200007ac","options":{"slug_field":1,"content_editor":0,"add_metafields":0,"metafields_title":0,"metafields_key":0},"order":3,"status":"published"},{"_id":"5aa921fe86e37313dc96a65d","old_id":"5a9d384785e79769d9954340","bucket":"5aa9219e86e37313dc96a64e","slug":"contact","title":"Contact Us","content":"

Aerobic activity alcoholism animal dander arthritis body type certified diabetes educators (cdes) diagnosis ear canal external otitis genes glucagon growth hormone hormone ibuprofen joints keratin ketones myopia nebulizer optometrist retina rheumatologist sternutation varicella zoster violence virus.

","metafields":[{"value":"This is the SEO description. Keep it short.","key":"seo_description","title":"SEO Description","type":"textarea","children":false},{"value":"Success! A rep from our office will be in touch soon!","key":"contact_form_success_message","title":"Contact Form Success Message","type":"textarea","children":false}],"type_slug":"pages","created":"2018-03-14T13:22:06.588Z","created_at":"2018-03-14T13:22:06.588Z","user_id":"5982e43580aaa862200007ac","options":{"slug_field":1,"content_editor":1},"order":3,"status":"published"},{"_id":"5aa921fe86e37313dc96a65e","old_id":"5a9d384785e79769d9954341","bucket":"5aa9219e86e37313dc96a64e","slug":"nav","title":"Nav","content":"","metafields":[{"value":"/","key":"home","title":"Home","type":"text","children":false},{"value":"/about-us","key":"about_us","title":"About Us","type":"text","children":false},{"value":"","key":"services","title":"Services","type":"text","children":[{"value":"/deciding-on-care","key":"deciding_on_care","title":"Deciding on Care","type":"text","children":false},{"value":"/specialty-centers-and-programs","key":"specialty_centers_and_programs","title":"Specialty Centers and Programs","type":"text","children":false}]},{"value":"","key":"areas_served","title":"Areas Served","type":"text","children":[{"value":"new-york-medical-services","key":"new_york","title":"New York","type":"text","children":false},{"value":"los-angeles-medical-services","key":"los_angeles","title":"Los Angeles","type":"text","children":false},{"value":"chicago-medical-services","key":"chicago","title":"Chicago","type":"text","children":false}]},{"value":"/blog","key":"blog","title":"Blog","type":"text","children":false},{"value":"/faqs","key":"faqs","title":"FAQs","type":"text","children":false},{"value":"/contact","key":"contact_us","title":"Contact Us","type":"text","children":false},{"value":"/search","key":"search","title":"Search","type":"text","children":false}],"type_slug":"globals","created":"2018-03-14T13:22:06.589Z","created_at":"2018-03-14T13:22:06.589Z","user_id":"5982e43580aaa862200007ac","options":{"slug_field":1,"content_editor":0},"order":4,"status":"published"},{"_id":"5aa921fe86e37313dc96a65f","old_id":"5a9d384785e79769d9954342","bucket":"5aa9219e86e37313dc96a64e","slug":"faqs","title":"FAQs","content":"","metafields":[{"value":"","key":"faqs","title":"FAQs","type":"text","children":[{"value":"Aerobic activity alcoholism animal dander arthritis body type certified diabetes educators (cdes) diagnosis ear canal external otitis genes glucagon growth hormone hormone ibuprofen joints keratin ketones myopia nebulizer optometrist retina rheumatologist sternutation varicella zoster violence virus.","key":"how_long_does_a_procedure_take","title":"How long does a procedure take?","type":"textarea","children":false},{"value":"Aerobic activity alcoholism animal dander arthritis body type certified diabetes educators (cdes) diagnosis ear canal external otitis genes glucagon growth hormone hormone ibuprofen joints keratin ketones myopia nebulizer optometrist retina rheumatologist sternutation varicella zoster violence virus.","key":"what_insurance_providers_do_you_accept","title":"What insurance providers do you accept?","type":"textarea","children":false},{"value":"Aerobic activity alcoholism animal dander arthritis body type certified diabetes educators (cdes) diagnosis ear canal external otitis genes glucagon growth hormone hormone ibuprofen joints keratin ketones myopia nebulizer optometrist retina rheumatologist sternutation varicella zoster violence virus.","key":"how_do_i_know_if_i_need_treatment","title":"How do I know if I need treatment?","type":"textarea","children":false}]},{"value":"This is the SEO description. Keep it short.","key":"seo_description","title":"SEO Description","type":"textarea","children":false}],"type_slug":"pages","created":"2018-03-14T13:22:06.590Z","created_at":"2018-03-14T13:22:06.590Z","user_id":"5982e43580aaa862200007ac","options":{"slug_field":1,"content_editor":0,"add_metafields":0,"metafields_title":0,"metafields_key":0},"order":4,"status":"published"},{"_id":"5aa921fe86e37313dc96a660","old_id":"5a9d384785e79769d9954343","bucket":"5aa9219e86e37313dc96a64e","slug":"blog","title":"Blog","content":"","metafields":[{"value":"This is the SEO description. Keep it short.","key":"seo_description","title":"SEO Description","type":"textarea","children":false}],"type_slug":"pages","created":"2018-03-14T13:22:06.591Z","created_at":"2018-03-14T13:22:06.591Z","user_id":"5982e43580aaa862200007ac","options":{"slug_field":1,"content_editor":1},"order":5,"status":null},{"_id":"5aa921fe86e37313dc96a661","old_id":"5a9d384785e79769d9954344","bucket":"5aa9219e86e37313dc96a64e","slug":"social","title":"Social","content":"","metafields":[{"value":"https://www.facebook.com","key":"facebook","title":"Facebook","type":"text","children":false},{"value":"https://twitter.com","key":"twitter","title":"Twitter","type":"text","children":false},{"value":"https://plus.google.com","key":"google_plus","title":"Google Plus","type":"text","children":false}],"type_slug":"globals","created":"2018-03-14T13:22:06.592Z","created_at":"2018-03-14T13:22:06.592Z","user_id":"5982e43580aaa862200007ac","options":{"slug_field":1,"content_editor":0},"order":5,"status":"published"},{"_id":"5aa921fe86e37313dc96a662","old_id":"5a9d384785e79769d9954345","bucket":"5aa9219e86e37313dc96a64e","slug":"search","title":"Search","content":"","metafields":[{"value":"This is the SEO description. Keep it short.","key":"seo_description","title":"SEO Description","type":"textarea","children":false}],"type_slug":"pages","created":"2018-03-14T13:22:06.593Z","created_at":"2018-03-14T13:22:06.593Z","user_id":"5982e43580aaa862200007ac","options":{"slug_field":1,"content_editor":1},"order":6,"status":null},{"_id":"5aa921fe86e37313dc96a663","old_id":"5a9d384785e79769d9954346","bucket":"5aa9219e86e37313dc96a64e","slug":"contact-info","title":"Contact Info","content":"","metafields":[{"value":"555-555-5555","key":"phone","title":"Phone","type":"text","children":false},{"value":"medical-pro@untitled.tld","key":"email","title":"Email","type":"text","children":false},{"value":"

12345 Medical Rd
Everywhere, USA

","key":"address","title":"Address","type":"html-textarea","children":false}],"type_slug":"globals","created":"2018-03-14T13:22:06.595Z","created_at":"2018-03-14T13:22:06.595Z","user_id":"5982e43580aaa862200007ac","options":{"slug_field":1,"content_editor":0},"order":6,"status":"published"},{"_id":"5aa921fe86e37313dc96a664","old_id":"5a9d384785e79769d9954347","bucket":"5aa9219e86e37313dc96a64e","slug":"footer","title":"Footer","content":"","metafields":[{"value":"Medicenter","key":"company_title","title":"Company Title","type":"text","children":false}],"type_slug":"globals","created":"2018-03-14T13:22:06.596Z","created_at":"2018-03-14T13:22:06.596Z","user_id":"5982e43580aaa862200007ac","options":{"slug_field":1,"content_editor":0},"order":7,"status":"published"},{"_id":"5aa921fe86e37313dc96a665","old_id":"5a9d384785e79769d9954348","bucket":"5aa9219e86e37313dc96a64e","slug":"home","title":"Home","content":"","metafields":[{"value":"Medicenter Cares for You","key":"headline","title":"Headline","type":"text","children":false},{"value":"We offer services for any patient that needs to get well","key":"subheadline","title":"Subheadline","type":"text","children":false},{"value":"","key":"carousel","title":"Carousel","type":"text","children":[{"value":"77b3c3c0-52ca-11e6-a069-734be6eb1ef6-shutterstock_218199787.png","key":"image","title":"Image","type":"file","children":false},{"value":"79e210f0-51c3-11e6-9e30-fb7e1b19bdc0-image1.jpg","key":"image","title":"Image","type":"file","children":false},{"value":"85707fc0-52cb-11e6-a069-734be6eb1ef6-shutterstock_59961622.png","key":"image","title":"Image","type":"file","children":false}]},{"value":"","key":"blurbs","title":"Blurbs","type":"text","children":[{"value":"Our Services","key":"blurb_1","title":"Blurb 1","type":"text","children":[{"value":"591595b0-52d4-11e6-a069-734be6eb1ef6-shutterstock_102057916.png","key":"image","title":"Image","type":"file","children":false},{"value":"Aerobic activity alcoholism animal dander arthritis body type certified diabetes educators (cdes) diagnosis ear canal external otitis genes glucagon growth hormone hormone ibuprofen joints keratin ketones myopia nebulizer optometrist retina rheumatologist sternutation varicella zoster violence virus.","key":"blurb_content","title":"Blurb Content","type":"textarea","children":false}]},{"value":"Patient Care","key":"blurb_1","title":"Blurb 1","type":"text","children":[{"value":"3dd962e0-52d4-11e6-a069-734be6eb1ef6-shutterstock_136759886.png","key":"image","title":"Image","type":"file","children":false},{"value":"Aerobic activity alcoholism animal dander arthritis body type certified diabetes educators (cdes) diagnosis ear canal external otitis genes glucagon growth hormone hormone ibuprofen joints keratin ketones myopia nebulizer optometrist retina rheumatologist sternutation varicella zoster violence virus.","key":"blurb_content","title":"Blurb Content","type":"textarea","children":false}]},{"value":"Patient Reviews","key":"blurb_1","title":"Blurb 1","type":"text","children":[{"value":"49f70e80-52cd-11e6-a069-734be6eb1ef6-shutterstock_270747038.png","key":"image","title":"Image","type":"file","children":false},{"value":"Aerobic activity alcoholism animal dander arthritis body type certified diabetes educators (cdes) diagnosis ear canal external otitis genes glucagon growth hormone hormone ibuprofen joints keratin ketones myopia nebulizer optometrist retina rheumatologist sternutation varicella zoster violence virus.","key":"blurb_content","title":"Blurb Content","type":"textarea","children":false}]}]},{"value":"Talk to a Medicenter Specialist","key":"call_to_action_text","title":"Call To Action Text","type":"text","children":false},{"value":"Let’s Get Started!","key":"call_to_action_subtext","title":"Call To Action Subtext","type":"text","children":false},{"value":"Contact Us","key":"call_to_action_button_text","title":"Call To Action Button Text","type":"text","children":false},{"value":"/contact","key":"call_to_action_button_link","title":"Call To Action Button Link","type":"text","children":false},{"value":"This is the SEO description. Keep it short.","key":"seo_description","title":"SEO Description","type":"textarea","children":false}],"type_slug":"pages","created":"2018-03-14T13:22:06.597Z","created_at":"2018-03-14T13:22:06.597Z","user_id":"5982e43580aaa862200007ac","options":{"slug_field":1,"content_editor":1},"order":8,"status":"published"},{"_id":"5aa921fe86e37313dc96a666","old_id":"5a9d384785e79769d9954349","bucket":"5aa9219e86e37313dc96a64e","slug":"specialty-centers-and-programs","title":"Specialty Centers and Programs","content":"

Abdominals acne addiction allergist biopsy blackhead body type bowels canine teeth constipation cornea emotions exercise-induced asthma gastric juices grieving icu immunizations larynx melanin neuropathy operation ophthalmologist semicircular canals sphenopalatineganglioneuralgia stethoscope stress tinnitus violence. Aerobic activity antibiotics asthma flare-up astringents beta cells cast dandruff growth hormone immunotherapy and allergy shots influenza insulin injections keratin nausea pancreas perspiration red blood cells rx sebaceous glands sternutation surgery symptoms tinnitus tragus wheeze. Adhd braces bronchial tubes bruise cone dust mites epiglottis gastroenteritis gluteus maximus growth hormone gums hydrogen peroxide immunotherapy and allergy shots inhaler intensive care unit larynx microscope nicotine otitis media pancreas papillae pediatric endocrinologist polydipsia retractions rx suture ultrasound urine wisdom teeth.

Allergy shots and immunotherapy astringents blood glucose meter cerebral cortex chemotherapy diabetes mellitus eeg (electroencephalogram) genes hematoma immune system night guard oncologist otitis media rem rx. Anemia blood bank braces cancer cerebellum chromosomes contact lenses diagnosis enamel epiglottis hormones hyperglycemia ibuprofen insulin resistance laparoscopy nutrition orthodontist pupil retinopathy spacer virus. Addiction conjunctivitis eczema exchange meal plan exhale growth hormone hematoma hormones inhale insulin pump myopia red blood cells sclera spirometer taste buds zoonosis. Eardrum enamel eustachian tube fats fluoride grieving hormones larynx mucous membrane neuropathy optician pinna retina rheumatologist stapes stethoscope veins and arteries.

Allergy antihistamines bacteria bolus braces cerebral cortex diarrhea dislocation enamel epidermis exercise-induced asthma fluoride heredity perspiration polyphagia retina saliva tragus urticaria. Acne airway obstruction airways allergy shots and immunotherapy arteries and veins arthritis bruise bruxism canine teeth cornea disinfectants glycosylated hemoglobin test (hemoglobin a1c) lacrimal glands laparoscopy mucus nervous system ophthalmologist pimple seizure tragus. Alcoholism astigmatism braces cast disinfectants exercise-induced asthma gums histamine immunotherapy and allergy shots navel otitis media pilomotor reflex pimple radiologist rheumatologist urinalysis urticaria x-ray. Acne asthma flare-up astringents eardrum exhale floss gluteus maximus grieving icu lunula nausea papillae tobacco vaccine.

Addiction airway obstruction animal dander asthma flare-up blood glucose level braces constipation dna ketones malocclusion pediatric endocrinologist pulse rescue medications tobacco whitehead x-ray. Alignment anesthesia arthritis ear canal epiglottis fracture genetics glucose iris keratin laxatives polydipsia rem urine wheeze yawn. Adhd cerebral cortex enamel frenulum gluteus maximus gurney heredity hyperglycemia neurologist sebum tympanogram. Anesthesia cerebral cortex depressant diaphragm ear canal epiglottis floss genes hyperopia immunizations inhale melanin red blood cells stress tympanogram urine white blood cells. Blood glucose meter certified diabetes educators (cdes) chronic conjunctivitis depression enamel insulin pump involuntary muscle laxatives platelets.

Acne addiction antibiotics bolus cancer cardiologist certified diabetes educators (cdes) conjunctivitis decongestants dietitian dna emotions exchange meal plan gluteus maximus islet cells larynx lunula prosthesis red blood cells rescue medications retractions rheumatologist sebaceous glands semicircular canals sphenopalatineganglioneuralgia suture tobacco. Allergen allergy shots and immunotherapy anesthesia antibiotics contact lenses diaphragm enuresis exchange meal plan gastroenteritis insulin pump lens nasal cavity plaque prosthesis sclera sphenopalatineganglioneuralgia stapes triggers vitreous body. Blackhead cough dyslexia fatty acids glucose influenza occupational therapist optometrist pulmonologist rhinovirus semicircular canals.

","metafields":[{"value":"This is the SEO description. Keep it short.","key":"seo_description","title":"SEO Description","type":"textarea","children":false}],"type_slug":"pages","created":"2018-03-14T13:22:06.601Z","created_at":"2018-03-14T13:22:06.601Z","user_id":"5982e43580aaa862200007ac","options":{"slug_field":1,"content_editor":1},"order":9,"status":"published"},{"_id":"5aa921fe86e37313dc96a667","old_id":"5a9d384785e79769d995434a","bucket":"5aa9219e86e37313dc96a64e","slug":"deciding-on-care","title":"Deciding on Care","content":"

Abdominals acne addiction allergist biopsy blackhead body type bowels canine teeth constipation cornea emotions exercise-induced asthma gastric juices grieving icu immunizations larynx melanin neuropathy operation ophthalmologist semicircular canals sphenopalatineganglioneuralgia stethoscope stress tinnitus violence. Aerobic activity antibiotics asthma flare-up astringents beta cells cast dandruff growth hormone immunotherapy and allergy shots influenza insulin injections keratin nausea pancreas perspiration red blood cells rx sebaceous glands sternutation surgery symptoms tinnitus tragus wheeze. Adhd braces bronchial tubes bruise cone dust mites epiglottis gastroenteritis gluteus maximus growth hormone gums hydrogen peroxide immunotherapy and allergy shots inhaler intensive care unit larynx microscope nicotine otitis media pancreas papillae pediatric endocrinologist polydipsia retractions rx suture ultrasound urine wisdom teeth.

Allergy shots and immunotherapy astringents blood glucose meter cerebral cortex chemotherapy diabetes mellitus eeg (electroencephalogram) genes hematoma immune system night guard oncologist otitis media rem rx. Anemia blood bank braces cancer cerebellum chromosomes contact lenses diagnosis enamel epiglottis hormones hyperglycemia ibuprofen insulin resistance laparoscopy nutrition orthodontist pupil retinopathy spacer virus. Addiction conjunctivitis eczema exchange meal plan exhale growth hormone hematoma hormones inhale insulin pump myopia red blood cells sclera spirometer taste buds zoonosis. Eardrum enamel eustachian tube fats fluoride grieving hormones larynx mucous membrane neuropathy optician pinna retina rheumatologist stapes stethoscope veins and arteries.

Allergy antihistamines bacteria bolus braces cerebral cortex diarrhea dislocation enamel epidermis exercise-induced asthma fluoride heredity perspiration polyphagia retina saliva tragus urticaria. Acne airway obstruction airways allergy shots and immunotherapy arteries and veins arthritis bruise bruxism canine teeth cornea disinfectants glycosylated hemoglobin test (hemoglobin a1c) lacrimal glands laparoscopy mucus nervous system ophthalmologist pimple seizure tragus. Alcoholism astigmatism braces cast disinfectants exercise-induced asthma gums histamine immunotherapy and allergy shots navel otitis media pilomotor reflex pimple radiologist rheumatologist urinalysis urticaria x-ray. Acne asthma flare-up astringents eardrum exhale floss gluteus maximus grieving icu lunula nausea papillae tobacco vaccine.

Addiction airway obstruction animal dander asthma flare-up blood glucose level braces constipation dna ketones malocclusion pediatric endocrinologist pulse rescue medications tobacco whitehead x-ray. Alignment anesthesia arthritis ear canal epiglottis fracture genetics glucose iris keratin laxatives polydipsia rem urine wheeze yawn. Adhd cerebral cortex enamel frenulum gluteus maximus gurney heredity hyperglycemia neurologist sebum tympanogram. Anesthesia cerebral cortex depressant diaphragm ear canal epiglottis floss genes hyperopia immunizations inhale melanin red blood cells stress tympanogram urine white blood cells. Blood glucose meter certified diabetes educators (cdes) chronic conjunctivitis depression enamel insulin pump involuntary muscle laxatives platelets.

Acne addiction antibiotics bolus cancer cardiologist certified diabetes educators (cdes) conjunctivitis decongestants dietitian dna emotions exchange meal plan gluteus maximus islet cells larynx lunula prosthesis red blood cells rescue medications retractions rheumatologist sebaceous glands semicircular canals sphenopalatineganglioneuralgia suture tobacco. Allergen allergy shots and immunotherapy anesthesia antibiotics contact lenses diaphragm enuresis exchange meal plan gastroenteritis insulin pump lens nasal cavity plaque prosthesis sclera sphenopalatineganglioneuralgia stapes triggers vitreous body. Blackhead cough dyslexia fatty acids glucose influenza occupational therapist optometrist pulmonologist rhinovirus semicircular canals.

","metafields":[{"value":"This is the SEO description. Keep it short.","key":"seo_description","title":"SEO Description","type":"textarea","children":false}],"type_slug":"pages","created":"2018-03-14T13:22:06.602Z","created_at":"2018-03-14T13:22:06.602Z","user_id":"5982e43580aaa862200007ac","options":{"slug_field":1,"content_editor":1},"order":10,"status":"published"},{"_id":"5aa921fe86e37313dc96a668","old_id":"5a9d384785e79769d995434b","bucket":"5aa9219e86e37313dc96a64e","slug":"about-us","title":"About us","content":"

Aerobic activity alcoholism animal dander arthritis body type certified diabetes educators (cdes) diagnosis ear canal external otitis genes glucagon growth hormone hormone ibuprofen joints keratin ketones myopia nebulizer optometrist retina rheumatologist sternutation varicella zoster violence virus. Allergen allergy allergy shots and immunotherapy allergy-triggered asthma anesthesia blood bank cancer carbohydrate counting cardiologist dandruff genes hemangioma hydrocortisone insulin lymph nasal cavity scoliosis semicircular canals skin test x-ray. Allergist antibiotics anus blood type diabetes mellitus exercise-induced asthma gingivitis glycemic index gums ibuprofen involuntary muscle lung function tests nutrition otitis media otolaryngologist pediatric endocrinologist scoliosis seizure.

Alignment astigmatism astringents blood bank blood type bronchial tubes cancer cerumen dermatologist emotions enuresis fracture heredity humidifier keratin lacrimal glands optician optometrist peak flow meter pneumonia rx scar sphenopalatineganglioneuralgia stethoscope urticaria vertebrae virus whitehead. Abrasion acne allergist anus astringents beta cells bronchodilator cerebellum congestion conjunctivitis diaphragm frostbite glycosylated hemoglobin test (hemoglobin a1c) immunotherapy and allergy shots insulin resistance melanin ophthalmologist rheumatologist scar stapes symptoms tobacco urine vaccine varicella zoster wheeze. Addiction blackhead cornea dyslexia gastric juices ketoacidosis retinopathy rhinovirus stethoscope virus.

","metafields":[{"value":"This is the SEO description. Keep it short.","key":"seo_description","title":"SEO Description","type":"textarea","children":false}],"type_slug":"pages","created":"2018-03-14T13:22:06.603Z","created_at":"2018-03-14T13:22:06.603Z","user_id":"5982e43580aaa862200007ac","options":{"slug_field":1,"content_editor":1},"order":11,"status":"published"}],"media":[{"_id":"5aa921fe86e37313dc96a670","name":"3dd962e0-52d4-11e6-a069-734be6eb1ef6-shutterstock_136759886.png","original_name":"shutterstock_136759886.png","size":1553225,"type":"image/png","bucket":"5aa9219e86e37313dc96a64e","created":"2016-07-26T01:57:00.579Z","folder":null,"location":"https://s3-us-west-2.amazonaws.com/cosmicjs"},{"_id":"5aa921fe86e37313dc96a671","name":"591595b0-52d4-11e6-a069-734be6eb1ef6-shutterstock_102057916.png","original_name":"shutterstock_102057916.png","size":3303055,"type":"image/png","bucket":"5aa9219e86e37313dc96a64e","created":"2016-07-26T01:57:46.354Z","folder":null,"location":"https://s3-us-west-2.amazonaws.com/cosmicjs"},{"_id":"5aa921fe86e37313dc96a669","name":"991f6b90-51c1-11e6-9e30-fb7e1b19bdc0-Screen Shot 2016-07-24 at 12.10.24 PM.png","original_name":"Screen Shot 2016-07-24 at 12.10.24 PM.png","size":14453,"type":"image/png","bucket":"5aa9219e86e37313dc96a64e","created":"2016-07-24T17:11:02.091Z","folder":null,"location":"https://s3-us-west-2.amazonaws.com/cosmicjs"},{"_id":"5aa921fe86e37313dc96a66a","name":"79e210f0-51c3-11e6-9e30-fb7e1b19bdc0-image1.jpg","original_name":"image1.jpg","size":582298,"type":"image/jpeg","bucket":"5aa9219e86e37313dc96a64e","created":"2016-07-24T17:24:28.732Z","folder":null,"location":"https://s3-us-west-2.amazonaws.com/cosmicjs"},{"_id":"5aa921fe86e37313dc96a66b","name":"0713f190-51ca-11e6-9e30-fb7e1b19bdc0-Screen Shot 2016-07-24 at 1.11.05 PM.png","original_name":"Screen Shot 2016-07-24 at 1.11.05 PM.png","size":9067,"type":"image/png","bucket":"5aa9219e86e37313dc96a64e","created":"2016-07-24T18:11:22.539Z","folder":null,"location":"https://s3-us-west-2.amazonaws.com/cosmicjs"},{"_id":"5aa921fe86e37313dc96a66c","name":"2c9b41c0-52a6-11e6-a069-734be6eb1ef6-doc.png","original_name":"doc.png","size":97142,"type":"image/png","bucket":"5aa9219e86e37313dc96a64e","created":"2016-07-25T20:27:14.838Z","folder":null,"location":"https://s3-us-west-2.amazonaws.com/cosmicjs"},{"_id":"5aa921fe86e37313dc96a66d","name":"77b3c3c0-52ca-11e6-a069-734be6eb1ef6-shutterstock_218199787.png","original_name":"shutterstock_218199787.png","size":646705,"type":"image/png","bucket":"5aa9219e86e37313dc96a64e","created":"2016-07-26T00:47:02.672Z","folder":null,"location":"https://s3-us-west-2.amazonaws.com/cosmicjs"},{"_id":"5aa921fe86e37313dc96a66e","name":"85707fc0-52cb-11e6-a069-734be6eb1ef6-shutterstock_59961622.png","original_name":"shutterstock_59961622.png","size":1671542,"type":"image/png","bucket":"5aa9219e86e37313dc96a64e","created":"2016-07-26T00:54:35.216Z","folder":null,"location":"https://s3-us-west-2.amazonaws.com/cosmicjs"},{"_id":"5aa921fe86e37313dc96a66f","name":"71f30d70-52d3-11e6-a069-734be6eb1ef6-shutterstock_208763188.png","original_name":"shutterstock_208763188.png","size":1882015,"type":"image/png","bucket":"5aa9219e86e37313dc96a64e","created":"2016-07-26T01:51:18.517Z","folder":null,"location":"https://s3-us-west-2.amazonaws.com/cosmicjs"}],"media_folders":[],"extensions":[],"thumbnail":null}} -------------------------------------------------------------------------------- /common/request.js: -------------------------------------------------------------------------------- 1 | import Cosmic from 'cosmicjs' 2 | import config from '~/config/config' 3 | import axios from 'axios' 4 | const api = Cosmic() 5 | const bucket = api.bucket({ 6 | slug: config.bucket.slug, 7 | read_key: config.bucket.read_key, 8 | write_key: config.bucket.write_key 9 | }) 10 | 11 | function getGlobals () { 12 | const params = { 13 | type_slug: 'globals' 14 | } 15 | return bucket.getObjectsByType(params); 16 | } 17 | 18 | function getPages () { 19 | const params = { 20 | type_slug: 'pages' 21 | }; 22 | return bucket.getObjectsByType(params); 23 | } 24 | 25 | function getBlogs () { 26 | const params = { 27 | type_slug: 'blogs' 28 | }; 29 | return bucket.getObjectsByType(params); 30 | } 31 | 32 | function getSearchData(){ 33 | return bucket.getObjects(); 34 | } 35 | 36 | async function contactForm(data, contact) { 37 | if (!config.env.SENDGRID_FUNCTION_ENDPOINT) { 38 | return { 39 | status: false, 40 | message: "You must add a SendGrid Function Endpoint URL. Contact your developer to add this value." 41 | } 42 | } else { 43 | try { 44 | var message = 'Name:
' + data.name + '

' + 45 | 'Subject:
' + contact.subject + '

' + 46 | 'Message:
' + data.message + '

' 47 | var email_data = { 48 | from: data.email, 49 | to: contact.to, 50 | subject: data.name + ' sent you a new message', 51 | text_body: message, 52 | html_body: message 53 | } 54 | const url = config.env.SENDGRID_FUNCTION_ENDPOINT 55 | await axios.post(url, email_data) 56 | saveForm(data) 57 | return { 58 | status: true, 59 | message: 'Success.' 60 | } 61 | } catch(error) { 62 | console.log(error) 63 | return { 64 | status: false, 65 | message: "You must add a SendGrid Function Endpoint URL. Contact your developer to add this value." 66 | } 67 | } 68 | } 69 | 70 | async function saveForm(data) { 71 | //Send to Cosmic 72 | const params = { 73 | type_slug: 'form-submissions', 74 | title: data.name, 75 | content: data.message, 76 | 77 | metafields: [{ 78 | title: 'Email', 79 | key: 'email', 80 | type: 'text', 81 | value: data.email 82 | }, 83 | { 84 | title: 'Phone', 85 | key: 'phone', 86 | type: 'text', 87 | value: data.phone 88 | } 89 | ] 90 | } 91 | // Write to Cosmic Bucket (Optional) 92 | const response = await bucket.addObject(params) 93 | } 94 | } 95 | 96 | export default {getGlobals,getPages,getBlogs,getSearchData,contactForm} 97 | -------------------------------------------------------------------------------- /components/AppLogo.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | 80 | -------------------------------------------------------------------------------- /components/README.md: -------------------------------------------------------------------------------- 1 | # COMPONENTS 2 | 3 | The components directory contains your Vue.js Components. 4 | Nuxt.js doesn't supercharge these components. 5 | 6 | **This directory is not required, you can delete it if you don't want to use it.** 7 | -------------------------------------------------------------------------------- /components/partials/footer.vue: -------------------------------------------------------------------------------- 1 | 48 | 63 | 64 | 88 | -------------------------------------------------------------------------------- /components/partials/header.vue: -------------------------------------------------------------------------------- 1 | 35 | 47 | 48 | -------------------------------------------------------------------------------- /config/config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | bucket: { 3 | slug: process.env.COSMIC_BUCKET || 'nuxtjs-medical-website', 4 | read_key: process.env.COSMIC_READ_KEY, 5 | write_key: process.env.COSMIC_WRITE_KEY, 6 | }, 7 | 8 | env: { 9 | SENDGRID_FUNCTION_ENDPOINT: process.env.SENDGRID_FUNCTION_ENDPOINT || 'https://your-function-endpoint.execute-api.us-east-1.amazonaws.com/dev/send-email' 10 | } 11 | } -------------------------------------------------------------------------------- /config/env.js: -------------------------------------------------------------------------------- 1 | MAILGUN_KEY = '' 2 | MAILGUN_DOMAIN = '' -------------------------------------------------------------------------------- /layouts/README.md: -------------------------------------------------------------------------------- 1 | # LAYOUTS 2 | 3 | This directory contains your Application Layouts. 4 | 5 | More information about the usage of this directory in the documentation: 6 | https://nuxtjs.org/guide/views#layouts 7 | 8 | **This directory is not required, you can delete it if you don't want to use it.** 9 | -------------------------------------------------------------------------------- /layouts/default.vue: -------------------------------------------------------------------------------- 1 | 8 | 39 | 85 | -------------------------------------------------------------------------------- /layouts/error.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | -------------------------------------------------------------------------------- /middleware/README.md: -------------------------------------------------------------------------------- 1 | # MIDDLEWARE 2 | 3 | This directory contains your Application Middleware. 4 | The middleware lets you define custom function to be ran before rendering a page or a group of pages (layouts). 5 | 6 | More information about the usage of this directory in the documentation: 7 | https://nuxtjs.org/guide/routing#middleware 8 | 9 | **This directory is not required, you can delete it if you don't want to use it.** 10 | -------------------------------------------------------------------------------- /nuxt.config.js: -------------------------------------------------------------------------------- 1 | require('dotenv').config() 2 | module.exports = { 3 | /* 4 | ** Headers of the page 5 | */ 6 | head: { 7 | title: 'medical-professional', 8 | meta: [ 9 | { charset: 'utf-8' }, 10 | { name: 'viewport', content: 'width=device-width, initial-scale=1' }, 11 | { hid: 'description', name: 'description', content: 'Nuxt.js project' } 12 | ], 13 | link: [ 14 | { rel: 'stylesheet', type: 'text/css',href: 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' }, 15 | { rel: 'stylesheet', href: 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' }, 16 | ], 17 | script:[ 18 | {src:'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'}, 19 | {src:'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'} 20 | ], 21 | modules: [ 22 | // Simple usage 23 | // 'bootstrap-vue/nuxt', 24 | { src: '~plugins/vee-validate.js' } 25 | // ['vee-validate', { 26 | // lang: 'en', 27 | // }] 28 | ] 29 | }, 30 | 31 | /* 32 | ** Customize the progress bar color 33 | */ 34 | loading: { color: '#3B8070' }, 35 | /* 36 | ** Build configuration 37 | */ 38 | build: { 39 | /* 40 | ** Run ESLint on save 41 | */ 42 | vendor: ['vee-validate'], 43 | extend (config, { isDev, isClient }) { 44 | if (isDev && isClient) { 45 | config.module.rules.push({ 46 | enforce: 'pre', 47 | test: /\.(js|vue)$/, 48 | loader: 'eslint-loader', 49 | exclude: /(node_modules)/ 50 | }) 51 | } 52 | } 53 | }, 54 | env: { 55 | SENDGRID_ENDPOINT: process.env.SENDGRID_ENDPOINT, 56 | SENDGRID_TO: process.env.SENDGRID_TO 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "medical-professional-nuxt-js", 3 | "version": "1.0.0", 4 | "description": "Nuxt.js Website Boilerplate", 5 | "author": "BitBytes", 6 | "private": true, 7 | "scripts": { 8 | "dev": "nuxt", 9 | "build": "nuxt build", 10 | "start": "npm run build; HOST=0.0.0.0 nuxt start", 11 | "generate": "nuxt generate", 12 | "lint": "eslint --ext .js,.vue --ignore-path .gitignore .", 13 | "precommit": "npm run lint" 14 | }, 15 | "dependencies": { 16 | "axios": "^0.18.0", 17 | "bootstrap-vue": "^2.0.0-rc.1", 18 | "cosmicjs": "^3.1.2", 19 | "dotenv": "^5.0.1", 20 | "mailgun.js": "^2.0.1", 21 | "nuxt": "^1.0.0", 22 | "vee-validate": "^2.0.5" 23 | }, 24 | "devDependencies": { 25 | "babel-eslint": "^8.2.1", 26 | "eslint": "^4.15.0", 27 | "eslint-friendly-formatter": "^3.0.0", 28 | "eslint-loader": "^1.7.1", 29 | "eslint-plugin-vue": "^4.0.0" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /pages/README.md: -------------------------------------------------------------------------------- 1 | # PAGES 2 | 3 | This directory contains your Application Views and Routes. 4 | The framework reads all the .vue files inside this directory and creates the router of your application. 5 | 6 | More information about the usage of this directory in the documentation: 7 | https://nuxtjs.org/guide/routing 8 | -------------------------------------------------------------------------------- /pages/_name.vue: -------------------------------------------------------------------------------- 1 | 9 | 18 | -------------------------------------------------------------------------------- /pages/about-us.vue: -------------------------------------------------------------------------------- 1 | 9 | 18 | 33 | -------------------------------------------------------------------------------- /pages/blog/_id.vue: -------------------------------------------------------------------------------- 1 | 35 | 48 | 62 | -------------------------------------------------------------------------------- /pages/blog/index.vue: -------------------------------------------------------------------------------- 1 | 35 | 45 | 62 | -------------------------------------------------------------------------------- /pages/contact.vue: -------------------------------------------------------------------------------- 1 | 58 | 97 | 116 | -------------------------------------------------------------------------------- /pages/faqs.vue: -------------------------------------------------------------------------------- 1 | 12 | 21 | 32 | -------------------------------------------------------------------------------- /pages/index.vue: -------------------------------------------------------------------------------- 1 | 58 | 67 | 95 | -------------------------------------------------------------------------------- /pages/search.vue: -------------------------------------------------------------------------------- 1 | 29 | 52 | 53 | 83 | -------------------------------------------------------------------------------- /plugins/README.md: -------------------------------------------------------------------------------- 1 | # PLUGINS 2 | 3 | This directory contains your Javascript plugins that you want to run before instantiating the root vue.js application. 4 | 5 | More information about the usage of this directory in the documentation: 6 | https://nuxtjs.org/guide/plugins 7 | 8 | **This directory is not required, you can delete it if you don't want to use it.** 9 | -------------------------------------------------------------------------------- /screenshots/main-image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cosmicjs/nuxtjs-website-boilerplate/bc4766889d32bbad113737a8245691961d7ebc7e/screenshots/main-image.png -------------------------------------------------------------------------------- /static/README.md: -------------------------------------------------------------------------------- 1 | # STATIC 2 | 3 | This directory contains your static files. 4 | Each file inside this directory is mapped to /. 5 | 6 | Example: /static/robots.txt is mapped as /robots.txt. 7 | 8 | More information about the usage of this directory in the documentation: 9 | https://nuxtjs.org/guide/assets#static 10 | 11 | **This directory is not required, you can delete it if you don't want to use it.** 12 | -------------------------------------------------------------------------------- /static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cosmicjs/nuxtjs-website-boilerplate/bc4766889d32bbad113737a8245691961d7ebc7e/static/favicon.ico -------------------------------------------------------------------------------- /static/img_avatar3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cosmicjs/nuxtjs-website-boilerplate/bc4766889d32bbad113737a8245691961d7ebc7e/static/img_avatar3.png -------------------------------------------------------------------------------- /static/md.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cosmicjs/nuxtjs-website-boilerplate/bc4766889d32bbad113737a8245691961d7ebc7e/static/md.png -------------------------------------------------------------------------------- /store/README.md: -------------------------------------------------------------------------------- 1 | # STORE 2 | 3 | This directory contains your Vuex Store files. 4 | Vuex Store option is implemented in the Nuxt.js framework. 5 | Creating a index.js file in this directory activate the option in the framework automatically. 6 | 7 | More information about the usage of this directory in the documentation: 8 | https://nuxtjs.org/guide/vuex-store 9 | 10 | **This directory is not required, you can delete it if you don't want to use it.** 11 | -------------------------------------------------------------------------------- /store/index.js: -------------------------------------------------------------------------------- 1 | import Vuex from 'vuex' 2 | import Vue from 'vue' 3 | import Request from '~/common/request' 4 | import _ from 'lodash' 5 | import VeeValidate from 'vee-validate' 6 | Vue.use(VeeValidate) 7 | function mapPages(pages) { 8 | var response = {}; 9 | pages.map((page) => { 10 | switch(page.slug){ 11 | case 'faqs': 12 | response.faqs = {}; 13 | response.faqs.title = 'FAQs' 14 | page.metafields.map((obj) => { 15 | response.faqs[obj.key] = obj.children 16 | }); 17 | break; 18 | case 'blog': 19 | response.blog = page; 20 | break; 21 | case 'home': 22 | response.home = {}; 23 | page.metafields.map((obj) => { 24 | if(obj.key == 'carousel' || obj.key == 'blurbs'){ 25 | response.home[obj.key] = obj.children 26 | } 27 | else 28 | response.home[obj.key] = obj; 29 | }); 30 | break; 31 | } 32 | }) 33 | return response; 34 | } 35 | 36 | function mapGlobals(globals){ 37 | var response = {}; 38 | globals.map((global) => { 39 | switch(global.slug){ 40 | case 'contact-form': 41 | response.contact_form = global; 42 | break; 43 | case 'header': 44 | response.header = global; 45 | break; 46 | case 'nav': 47 | response.nav = global; 48 | break; 49 | case 'social': 50 | response.social = global; 51 | break; 52 | case 'contact-info': 53 | response.contact_info = global 54 | break; 55 | case 'footer': 56 | response.footer = global; 57 | break; 58 | } 59 | }) 60 | return response; 61 | } 62 | const state = { 63 | global : { 64 | header: {}, 65 | nav: {}, 66 | social: {}, 67 | contact_info: {}, 68 | footer: {}, 69 | contact_form: {} 70 | }, 71 | pages: { 72 | home: {}, 73 | blog: {}, 74 | faqs: {}, 75 | }, 76 | page:{}, 77 | blogs: {}, 78 | blog: {}, 79 | search: {}, 80 | search_data: [], 81 | } 82 | 83 | const getters = { 84 | getHeader(state){ 85 | return state.global.header 86 | }, 87 | getNav(state){ 88 | return state.global.nav 89 | }, 90 | getSocial(state){ 91 | return state.global.social 92 | }, 93 | getHomeData(state){ 94 | return state.pages.home 95 | }, 96 | getBlogPage(state) { 97 | return state.pages.blog 98 | }, 99 | getFaqs(state) { 100 | return state.pages.faqs 101 | }, 102 | getBlog(state) { 103 | return state.blogs 104 | }, 105 | getSearchData(state) { 106 | return state.search_data 107 | }, 108 | getContactInfo(state) { 109 | return state.global.contact_info 110 | }, 111 | getFooter(state) { 112 | return state.global.footer 113 | }, 114 | getContactForm(state) { 115 | return state.global.contact_form 116 | }, 117 | getSelectedBlog(state) { 118 | return state.blog 119 | }, 120 | getPage: (state) => (slug) => { 121 | return _.find(state.page, function(o) { return o.slug == slug; }); 122 | } 123 | } 124 | 125 | const mutations = { 126 | SET_HEADERS : (state , payload) => { 127 | state.global.header = payload 128 | }, 129 | SET_NAV : (state , payload) => { 130 | state.global.nav = payload 131 | }, 132 | SET_SOCIAL : (state , payload) => { 133 | state.global.social = payload 134 | }, 135 | SET_CONTACT : (state , payload) => { 136 | state.global.contact = payload 137 | }, 138 | SET_FOOTER : (state , payload) => { 139 | state.global.footer = payload 140 | }, 141 | SET_HOME : (state, payload) => { 142 | state.pages.home = payload 143 | }, 144 | SET_BLOG : (state, payload) => { 145 | state.pages.blog = payload 146 | }, 147 | SET_FAQS : (state,payload) => { 148 | state.pages.faqs = payload 149 | }, 150 | SET_BLOGS : (state,payload) => { 151 | state.blogs = payload 152 | }, 153 | SET_SEARCH_DATA: (state, payload) => { 154 | state.search_data = payload 155 | }, 156 | SET_CONTACT_INFO: (state, payload) => { 157 | state.global.contact_info = payload 158 | }, 159 | SET_CONTACT_FORM: (state, payload) => { 160 | state.global.contact_form = payload 161 | }, 162 | SET_SEARCH: (state, payload) => { 163 | state.search = payload 164 | }, 165 | SET_SELECTED_BLOG: (state,payload) => { 166 | state.blog = payload 167 | }, 168 | SET_PAGE: (state,payload) => { 169 | state.page = payload; 170 | } 171 | } 172 | 173 | const actions = { 174 | 175 | async nuxtServerInit(context,payload){ 176 | const PagesResponse = await Request.getPages(); 177 | const Pages = PagesResponse.objects; 178 | const BlogsResponse = await Request.getBlogs(); 179 | const Blogs = BlogsResponse.objects; 180 | const SearchResponse = await Request.getSearchData(); 181 | const Search = SearchResponse.objects; 182 | const Response = await Request.getGlobals(); 183 | const Globals = Response.objects; 184 | if(Search){ 185 | context.commit('SET_SEARCH',Search) 186 | } 187 | if(Blogs){ 188 | context.commit('SET_BLOGS', Blogs) 189 | } 190 | if(Pages){ 191 | context.commit('SET_PAGE',Pages) 192 | const mapped_pages = mapPages(Pages); 193 | context.commit('SET_HOME' ,mapped_pages.home) 194 | context.commit('SET_BLOG' ,mapped_pages.blog) 195 | context.commit('SET_FAQS' ,mapped_pages.faqs) 196 | } 197 | if(Globals){ 198 | const mapped_globals = mapGlobals(Globals); 199 | context.commit('SET_HEADERS' ,mapped_globals.header.metadata) 200 | context.commit('SET_NAV' ,mapped_globals.nav) 201 | context.commit('SET_CONTACT_INFO',mapped_globals.contact_info.metadata) 202 | context.commit('SET_SOCIAL',mapped_globals.social.metadata) 203 | context.commit('SET_FOOTER',mapped_globals.footer.metadata) 204 | context.commit('SET_CONTACT_FORM',mapped_globals.contact_form.metadata) 205 | } 206 | }, 207 | getSearchData(context, payload){ 208 | let objects = this.state.search; 209 | let search_results = []; 210 | objects.forEach(object => { 211 | if(object.title.toLowerCase().indexOf(payload) !== -1 || object.content.toLowerCase().indexOf(payload) !== -1){ 212 | object.teaser = object.content.replace(/(<([^>]+)>)/ig,"").substring(0, 300) 213 | if (object.type_slug === 'blogs') 214 | object.permalink = '/blog/' + object.slug 215 | else 216 | object.permalink = '/' + object.slug 217 | search_results.push(object) 218 | } 219 | if (!_.find(search_results, { _id: object._id })) { 220 | object.metafields.forEach(metafield => { 221 | if(metafield.value.toLowerCase().indexOf(payload) !== -1 && !_.find(search_results, { _id: object._id })) { 222 | object.teaser = object.content.replace(/(<([^>]+)>)/ig,"").substring(0, 300) 223 | if (object.type_slug === 'blogs') 224 | object.permalink = '/blog/' + object.slug 225 | else 226 | object.permalink = '/' + object.slug 227 | search_results.push(object) 228 | } 229 | }) 230 | } 231 | }); 232 | context.commit('SET_SEARCH_DATA', search_results) 233 | return new Promise((resolve, reject) => { 234 | resolve(); 235 | }); 236 | }, 237 | async sendMessage(context,payload){ 238 | var data = payload 239 | var contact = this.getters.getContactForm 240 | const Response = await Request.contactForm(data,contact); 241 | return Response 242 | }, 243 | getBlog(context,payload){ 244 | this.state.blogs.forEach(element => { 245 | if(element.slug == payload){ 246 | context.commit('SET_SELECTED_BLOG',element) 247 | }else{ 248 | context.commit('SET_SELECTED_BLOG',null) 249 | } 250 | }); 251 | } 252 | } 253 | 254 | const createStore = () => { 255 | return new Vuex.Store({ 256 | state, 257 | getters, 258 | mutations, 259 | actions 260 | }) 261 | } 262 | 263 | export default createStore --------------------------------------------------------------------------------