This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| const readline = require("readline"); | |
| const fs = require("fs"); | |
| const { execSync } = require("child_process"); | |
| const path = require("path"); | |
| const serverGithubUrl = "https://github.com/rahamatj/mern-ecom-server.git"; | |
| const clientGithubUrl = "https://github.com/rahamatj/mern-ecom-client.git"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const data = new FormData(); | |
| function appendToFormData(data, previousKey) { | |
| if (data instanceof Object) { | |
| Object.keys(data).forEach(key => { | |
| const value = data[key]; | |
| if (previousKey) { | |
| key = `${previousKey}[${key}]`; | |
| } | |
| if (value instanceof Object && !Array.isArray(value) && !(value instanceof File)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <script> | |
| function openModal(modalId) { | |
| $(modalId).css('opacity', 0) | |
| .slideDown('slow') | |
| .animate( | |
| { opacity: 1 }, | |
| { queue: false, duration: 'slow' } | |
| ); | |
| $('<div class="modal-backdrop"></div>').appendTo(document.body); |