Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.14 KB | None | 0 0
  1. <template>
  2. <div class="component-example" id="editor-setting-component ">
  3. <!-- <div class="long-doc-save-area">
  4. <!-- <h1>Setting</h1>-->
  5. <!-- </div> -->
  6. <div class="long-doc-inputs">
  7. <h1 class="subtitle mt-2">Add Domain</h1>
  8. <input class="input" v-model="domain" type="text" placeholder="fuitter.com">
  9. <h6>Your website is published at the domain above</h6>
  10. <h1 class="subtitle has-text-grey mt-2">Add Subdomain</h1>
  11. <input class="input" v-model="subDomain" type="text" placeholder="subdomain">
  12. </div>
  13. <div>
  14. <div class="long-doc-wysiwyg-area">
  15. <h6>Terms and Conditions</h6>
  16. <wysiwyg v-model="termsCondition" class="long-doc-wysiwyg"/>
  17. </div>
  18. <div class="long-doc-wysiwyg-area">
  19. <h6>Privacy Policy</h6>
  20. <wysiwyg v-model="privacyPolicy" class="long-doc-wysiwyg"/>
  21. </div>
  22. </div>
  23. <button class="button is-info" @click="saveSetting()">Save Info</button>
  24. </div>
  25. </template>
  26.  
  27. <script>
  28. import EditorServices from "../../services/index.js";
  29.  
  30. export default {
  31. props: ["fb_page_id", "template", "fb_page_name"],
  32. data() {
  33. return {
  34. domain: "",
  35. subDomain: "",
  36. termsCondition: `<p class="pad-10">Terms of Service</p>
  37. <p class="pad-10"><b>1. Terms</b></p>
  38. <p>By accessing the website at ${
  39. this.domain
  40. }, you are agreeing to be bound by these terms of
  41. service, all applicable laws and regulations, and agree that you are responsible for compliance with any
  42. applicable local laws. If you do not agree with any of these terms, you are prohibited from using or accessing
  43. his site. The materials contained in this website are protected by applicable copyright and trademark law.</p>
  44. <p class="pad-10"><b>2. Use License</b></p>
  45. <p>a. Permission is granted to temporarily download one copy of the materials (information or software) on
  46. ${
  47. this.fb_page_name
  48. }'s website for personal, non-commercial transitory viewing only. This is the grant of a license, not a
  49. transfer of title, and under this license you may not:
  50. <ul>
  51. <li>1. modify or copy the materials;</li>
  52. <li>2. use the materials for any commercial purpose, or for any public display (commercial or non-commercial);</li>
  53. <li>3. attempt to decompile or reverse engineer any software contained on ${
  54. this.fb_page_name
  55. }'s website;</li>
  56. <li>4. remove any copyright or other proprietary notations from the materials; or</li>
  57. <li>5. transfer the materials to another person or 'mirror' the materials on any other server.</li>
  58. </ul>
  59. <p class="pad-10">b. This license shall automatically terminate if you violate any of these restrictions and may be terminated
  60. by ${
  61. this.fb_page_name
  62. } at any time. Upon terminating your viewing of these materials or upon the termination of this license,
  63. you must destroy any downloaded materials in your possession whether in electronic or printed format.</p>
  64. <p class="pad-10"><b>3. Disclaimer</b></p>
  65. <p>a. The materials on ${
  66. this.fb_page_name
  67. }'s website are provided on an 'as is' basis. ${
  68. this.fb_page_name
  69. } makes no warranties, expressed
  70. or implied, and hereby disclaims and negates all other warranties including, without limitation, implied warranties
  71. or conditions of merchantability, fitness for a particular purpose, or non-infringement of intellectual property
  72. or other violation of rights.</p>
  73. <p class="pad-10">b. Further, ${
  74. this.fb_page_name
  75. } does not warrant or make any representations concerning the accuracy, likely results, or reliability
  76. of the use of the materials on its website or otherwise relating to such materials or on any sites linked to this site.</p>
  77. <p class="pad-10"><b>4. Limitations</b></p>
  78. <p>In no event shall ${
  79. this.fb_page_name
  80. } or its suppliers be liable for any damages (including, without limitation, damages for loss of data
  81. or profit, or due to business interruption) arising out of the use or inability to use the materials on ${
  82. this.fb_page_name
  83. }'s website,
  84. even if ${this.fb_page_name} or a ${
  85. this.fb_page_name
  86. } authorized representative has been notified orally or in writing of the possibility
  87. of such damage. Because some jurisdictions do not allow limitations on implied warranties, or limitations of
  88. liability for consequential or incidental damages, these limitations may not apply to you.</p>
  89. <p class="pad-10"><b>5. Accuracy of materials</b></p>
  90. <p>The materials appearing on ${
  91. this.fb_page_name
  92. }'s website could include technical, typographical, or photographic errors.
  93. ${
  94. this.fb_page_name
  95. } does not warrant that any of the materials on its website are accurate, complete or current. ${
  96. this.fb_page_name
  97. } may make changes to the
  98. materials contained on its website at any time without notice. However ${
  99. this.fb_page_name
  100. } does not make any commitment
  101. to update the materials.</p>
  102. <p class="pad-10"><b>6. Links</b></p>
  103. <p>${
  104. this.fb_page_name
  105. } has not reviewed all of the sites linked to its website and is not responsible for the contents of
  106. any such linked site. The inclusion of any link does not imply endorsement by ${
  107. this.fb_page_name
  108. } of the site. Use of any such
  109. linked website is at the user's own risk.</p>
  110. <p class="pad-10"><b>7. Modifications</b></p>
  111. <p>${
  112. this.fb_page_name
  113. } may revise these terms of service for its website at any time without notice. By using this website
  114. you are agreeing to be bound by the then current version of these terms of service.</p>
  115. <p class="pad-10"><b>8. Governing Law</b></p>
  116. <p>These terms and conditions are governed by and construed in accordance with the laws of United States and
  117. you irrevocably submit to the exclusive jurisdiction of the courts in that State or location.</p>`,
  118. privacyPolicy: `<h1>${this.fb_page_name} Privacy Policy</h1>
  119. <p class="pad-10">${
  120. this.fb_page_name
  121. } (the “Company”) is committed to protecting the privacy of its users. This Privacy Policy (“Privacy
  122. Policy”) is designed to help you understand what information we gather, how we use it, what we do to protect
  123. it, and to assist you in making informed decisions when using our Service. Unless otherwise indicated below,
  124. this Privacy Policy applies to any website that references this Privacy Policy, any Company website, as well
  125. as any data the Company may collect across partnered and unaffiliated sites.</p>
  126. <p class="pad-10">For purposes of this Agreement, “Service” refers to the Company’s service which can be accessed via our
  127. website at ${
  128. this.domain
  129. } or through our mobile application. The terms “we,” “us,” and “our”
  130. refer to the Company. “You” refers to you, as a user of Service.</p>
  131. <p class="pad-10"><b>i. CONSENT</b></p>
  132. <p>By accessing our Service, you accept our Privacy Policy and Terms of Use, and you consent to our collection,
  133. storage, use and disclosure of your personal information as described in this Privacy Policy. In addition, by
  134. using our Service, or services across partnered and unaffiliated sites, you are accepting the policies and
  135. practices described in this Privacy Policy. Each time you visit our website, or use the Service, and any time
  136. you voluntarily provide us with information, you agree that you are consenting to our collection, use and
  137. disclosure of the information that you provide, and you are consenting to receive emails or otherwise be
  138. contacted, as described in this Privacy Policy. Whether or not you register or create any kind of account with
  139. us, this Privacy Policy applies to all users of the website and the Service.</p>
  140. <p class="pad-10"><b>ii. INFORMATION WE COLLECT</b></p>
  141. <p>We may collect both “Non-Personal Information” and “Personal Information” about you. “Non-Personal Information”
  142. includes information that cannot be used to personally identify you, such as anonymous usage data, general
  143. demographic information we may collect, referring/exit pages and URLs, platform types, preferences you submit
  144. and preferences that are generated based on the data you submit and number of clicks. “Personal Information”
  145. includes information that can be used to personally identify you, such as your name, address and email address.</p>
  146. <p class="pad-10">In addition, we may also track information provided to us by your browser or by our mobile application when
  147. you view or use the Service, such as the website you came from (known as the “referring URL”), the type of browser
  148. you use, the device from which you connected to the Service, the time and date of access, and other information
  149. that does not personally identify you. We use this information for, among other things, the operation of the
  150. Service, to maintain the quality of the Service, to provide general statistics regarding use of the Service and
  151. for other business purposes. We track this information using cookies, or small text files which include an
  152. anonymous unique identifier. Cookies are sent to a user’s browser from our servers and are stored on the user’s
  153. computer hard drive. Sending a cookie to a user’s browser enables us to collect Non-Personal Information about
  154. that user and keep a record of the user’s preferences when utilizing our services, both on an individual and
  155. aggregate basis. The Company may use both persistent and session cookies; persistent cookies remain on your
  156. computer after you close your session and until you delete them, while session cookies expire when you close
  157. your browser. Persistent cookies can be removed by following your Internet browser help file directions. If you
  158. choose to disable cookies, some areas of the Service may not work properly.</p>
  159. <p class="pad-10"><b>iii. HOW WE USE AND SHARE INFORMATION</b></p>
  160. <p class="pad-10"><b>Personal Information:</b></p>
  161. <p>In general, we do not sell, trade, rent or otherwise share your Personal Information with third parties
  162. without your consent. We may share your Personal Information with vendors and other third-party providers who
  163. are performing services for the Company. In general, the vendors and third-party providers used by us will
  164. only collect, use and disclose your information to the extent necessary to allow them to perform the services
  165. they provide for the Company. For example, when you provide us with personal information to complete a
  166. transaction, verify your credit card, place an order, arrange for a delivery, or return a purchase, you
  167. consent to our collecting and using such personal information for that specific purpose, including by transmitting
  168. such information to our vendors (and their service providers) performing these services for the Company.</p>
  169. <p class="pad-10">However, certain third-party service providers, such as payment processors, have their own privacy policies in
  170. respect of the information that we are required to provide to them in order to use their services. For these
  171. third-party service providers, we recommend that you read their privacy policies so that you can understand the
  172. manner in which your Personal Information will be handled by such providers.</p>
  173. <p class="pad-10">In addition, we may disclose your Personal Information if required to do so by law or if you violate our Terms of Use.</p>
  174. <p class="pad-10"><b>Non-Personal Information:</b></p>
  175. <p>In general, we use Non-Personal Information to help us improve the Service and customize the user experience.
  176. We also aggregate Non-Personal Information in order to track trends and analyze use patterns of the Service.
  177. This Privacy Policy does not limit in any way our use or disclosure of Non-Personal Information and we reserve
  178. the right to use and disclose such Non-Personal Information to our partners, advertisers and other third parties
  179. at our sole discretion.</p>
  180. <p class="pad-10"><b>iv. HOW WE PROTECT INFORMATION</b></p>
  181. <p>We implement reasonable precautions and follow industry best practices in order to protect your Personal
  182. Information and ensure that such Personal Information is not accessed, disclosed, altered or destroyed.
  183. However, these measures do not guarantee that your information will not be accessed, disclosed, altered or
  184. destroyed by breach of such precautions. By using our Service, you acknowledge that you understand and agree
  185. to assume these risks.</p>
  186. <p class="pad-10"><b>v. YOUR RIGHTS REGARDING THE USE OF YOUR PERSONAL INFORMATION</b></p>
  187. <p>You have the right at any time to prevent us from contacting you for marketing purposes. When we send a
  188. promotional communication to a user via Pagevamp , the user can opt out of further promotional communications
  189. by following the unsubscribe instructions provided in each promotional e-mail. Please note that notwithstanding
  190. the promotional preferences you indicate by either unsubscribing or opting out in the Settings section of the
  191. Site, we may continue to send you administrative emails including, for example, periodic updates to our Privacy
  192. Policy.</p>
  193. <p class="pad-10"><b>vi. Fuitter</b></p>
  194. <p>Our Service is hosted by Fuitter, Inc. (Fuitter). Fuitter provides us with the online e-commerce platform
  195. that allows us to provide the Service to you. Your information, including Personal Information, may be stored
  196. through Fuitter's servers. By using the Service, you consent to Fuitter's collection, disclosure, storage,
  197. and use of your Personal Information in accordance with Fuitter's privacy policy available at https://www.fuitter.com/privacy.</p>
  198. <p class="pad-10"><b>vii. LINKS TO OTHER WEBSITES</b></p>
  199. <p>As part of the Service, we may provide links to or compatibility with other websites or applications.
  200. However, we are not responsible for the privacy practices employed by those websites or the information or
  201. content they contain. This Privacy Policy applies solely to information collected by us through the Service.
  202. Therefore, this Privacy Policy does not apply to your use of a third-party website accessed by selecting a
  203. link via our Service. To the extent that you access or use the Service through or on another website or
  204. application, then the privacy policy of that other website or application will apply to your access or use of
  205. that site or application. We encourage our users to read the privacy statements of other websites before
  206. proceeding to use them.</p>
  207. <p class="pad-10"><b>viii. AGE OF CONSENT</b></p>
  208. <p>By using the Service, you represent that you are at least 18 years of age.</p>
  209. <p class="pad-10"><b>ix. CHANGES TO OUR PRIVACY POLICY</b></p>
  210. <p>The Company reserves the right to change this Privacy Policy and our Terms of Use at any time. If we decide
  211. to change this Privacy Policy, we will post these changes on this page so that you are always aware of what
  212. information we collect, how we use it, and under what circumstances we disclose it. Any such modifications
  213. become effective upon your continued access to and/or use of the Service five (5) days after we first post the
  214. changes on the website or otherwise provide you with notice of such modifications. It is your sole responsibility
  215. to check this website from time to time to view any such changes to the terms of this Privacy Policy. If you do not
  216. agree to any changes, if and when such changes may be made to this Privacy Policy, you must cease access to this
  217. website. If you have provided your email address to us, you give us permission to email you for the purpose of
  218. notification as described in this Privacy Policy.</p>
  219. <p class="pad-10"><b>x. MERGER OR ACQUISITION</b></p>
  220. <p>In the event we (or Fuitter) undergo a business transaction such as a merger, acquisition by another
  221. company, or sale of all or a portion of our assets, your Personal Information may be among the assets
  222. transferred. You acknowledge and consent that such transfers may occur and are permitted by this Privacy
  223. Policy, and that any acquirer of our (or Pagevamp’s) assets may continue to process your Personal Information
  224. as set forth in this Privacy Policy. If our information practices change at any time in the future, we will
  225. post the policy changes here so that you may opt out of the new information practices. We suggest that you
  226. check this Privacy Policy periodically if you are concerned about how your information is used.</p>
  227. <p class="pad-10"><b>xi. EMAIL COMMUNICATIONS & OPTING OUT</b></p>
  228. <p>We will send you Service-related announcements on occasions when it is necessary to do so. For instance,
  229. if our Service is temporarily suspended for maintenance, or a new enhancement is released, which will affect
  230. the way you use our Service, we might send you an email. Generally, you may not opt-out of these communications,
  231. which are not promotional in nature. Based upon the Personal Information that you provide us, we may communicate
  232. with you in response to your inquiries to provide the services you request and to manage your account. We will
  233. communicate with you by email or telephone, in accordance with your wishes. We may also use your Personal
  234. Information to send you updates and other promotional communications. If you no longer wish to receive those
  235. email updates, you may opt-out of receiving them by following the instructions included in each update or
  236. communication.</p>
  237. <p class="pad-10"><b>xii. CONTACT US & WITHDRAWING CONSENT</b></p>
  238. <p>If you have any questions regarding this Privacy Policy or the practices of this Site, or wish to withdraw
  239. your consent for the continued collection, use or disclosure of your Personal Information, please contact us
  240. by sending an email to.</p>`
  241. };
  242. },
  243.  
  244. methods: {
  245. saveSetting() {
  246. EditorServices.updateSetting(this.fb_page_id, {
  247. subdomain: this.subDomain,
  248. domain: this.domain,
  249. fb_page_template_id: this.template.id,
  250. legal_info: {
  251. terms_condition: this.termsCondition,
  252. privacy_policy: this.privacyPolicy
  253. }
  254. });
  255. }
  256. },
  257.  
  258. created() {
  259. EditorServices.showSetting(this.template.id).then(res => {
  260. if (!_.isNil(res.data)) {
  261. const settingData = res.data;
  262. this.domain = settingData.domain;
  263. this.subDomain = settingData.subdomain;
  264. this.termsCondition = settingData.legal_info.terms_condition;
  265. this.privacyPolicy = settingData.legal_info.privacy_policy;
  266. }
  267. });
  268. }
  269. };
  270. </script>
  271.  
  272.  
  273.  
  274. <style scoped>
  275. .component-example {
  276. width: 100%;
  277. /* margin: 20px 5vw; */
  278. overflow-y: scroll;
  279. height: 100%;
  280. padding: 20px 10vw;
  281. display: flex;
  282. align-items: center;
  283. flex-flow: column;
  284. }
  285. .component-example h1 {
  286. margin-bottom: 0;
  287. }
  288. /* #4CB289 */
  289. /* 00b289 */
  290. .long-doc-inputs {
  291. margin: 20px;
  292. width: 100%;
  293. }
  294. .long-doc-wysiwyg-area {
  295. margin: 40px 0;
  296. }
  297. .button {
  298. width: 80%;
  299. }
  300. .long-doc-save-area {
  301. display: flex;
  302. justify-content: space-between;
  303. flex-flow: row;
  304. width: 100%;
  305. align-items: center;
  306. }
  307. .long-doc-save-area h1 {
  308. font-size: 2.5rem;
  309. }
  310. </style>
  311. <style>
  312. .long-doc-wysiwyg {
  313. box-shadow: 5px 5px 5px darkgrey;
  314. }
  315. .long-doc-wysiwyg .editr--toolbar {
  316. background-color: #00b289;
  317. padding: 5px 10px 20px 10px;
  318. height: 45px;
  319. }
  320. .long-doc-wysiwyg .editr--toolbar a svg {
  321. fill: white;
  322. }
  323. .long-doc-wysiwyg .editr--toolbar a {
  324. transform: scale(1.2);
  325. }
  326. .long-doc-wysiwyg .editr--content {
  327. background-color: white;
  328. height: 300px;
  329. overflow-y: scroll;
  330. padding: 10px;
  331. }
  332. #editor-setting-component {
  333. display: none;
  334. }
  335. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement