fca-priyansh 10.1.0 → 10.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Extra/Html/Classic/script.js +1 -1
 - package/index.js +58 -59
 - package/package.json +1 -1
 
    
        package/index.js
    CHANGED
    
    | 
         @@ -51,8 +51,7 @@ global.Fca = new Object({ 
     | 
|
| 
       51 
51 
     | 
    
         
             
                        "AutoRestartMinutes": 0,
         
     | 
| 
       52 
52 
     | 
    
         
             
                        "HTML": {   
         
     | 
| 
       53 
53 
     | 
    
         
             
                            "HTML": true,
         
     | 
| 
       54 
     | 
    
         
            -
                            "UserName": "Guest" 
     | 
| 
       55 
     | 
    
         
            -
                            "MusicLink": "https://drive.google.com/uc?id=1zlAALlxk1TnO7jXtEP_O6yvemtzA2ukA&export=download"
         
     | 
| 
      
 54 
     | 
    
         
            +
                            "UserName": "Guest"
         
     | 
| 
       56 
55 
     | 
    
         
             
                        }   
         
     | 
| 
       57 
56 
     | 
    
         
             
                    },
         
     | 
| 
       58 
57 
     | 
    
         
             
                    CountTime: function() {
         
     | 
| 
         @@ -195,63 +194,63 @@ var Boolean_Option = ['online','selfListen','listenEvents','updatePresence','for 
     | 
|
| 
       195 
194 
     | 
    
         | 
| 
       196 
195 
     | 
    
         
             
            /!-[ Set And Check Template HTML ]-!/
         
     | 
| 
       197 
196 
     | 
    
         | 
| 
       198 
     | 
    
         
            -
            var css = readFileSync(join(__dirname, 'Extra', 'Html', 'Classic', 'style.css'));
         
     | 
| 
       199 
     | 
    
         
            -
            var js = readFileSync(join(__dirname, 'Extra', 'Html', 'Classic', 'script.js'));
         
     | 
| 
       200 
     | 
    
         
            -
             
     | 
| 
       201 
     | 
    
         
            -
            /!-[ Function Generate HTML Template ]-!/
         
     | 
| 
       202 
     | 
    
         
            -
             
     | 
| 
       203 
     | 
    
         
            -
            /**
         
     | 
| 
       204 
     | 
    
         
            -
             
     | 
| 
       205 
     | 
    
         
            -
             
     | 
| 
       206 
     | 
    
         
            -
             
     | 
| 
       207 
     | 
    
         
            -
             
     | 
| 
       208 
     | 
    
         
            -
             
     | 
| 
       209 
     | 
    
         
            -
             
     | 
| 
       210 
     | 
    
         
            -
             
     | 
| 
       211 
     | 
    
         
            -
            function ClassicHTML(UserName,Type,link) {
         
     | 
| 
       212 
     | 
    
         
            -
             
     | 
| 
       213 
     | 
    
         
            -
             
     | 
| 
       214 
     | 
    
         
            -
             
     | 
| 
       215 
     | 
    
         
            -
             
     | 
| 
       216 
     | 
    
         
            -
             
     | 
| 
       217 
     | 
    
         
            -
             
     | 
| 
       218 
     | 
    
         
            -
             
     | 
| 
       219 
     | 
    
         
            -
             
     | 
| 
       220 
     | 
    
         
            -
             
     | 
| 
       221 
     | 
    
         
            -
             
     | 
| 
       222 
     | 
    
         
            -
             
     | 
| 
       223 
     | 
    
         
            -
             
     | 
| 
       224 
     | 
    
         
            -
             
     | 
| 
       225 
     | 
    
         
            -
             
     | 
| 
       226 
     | 
    
         
            -
             
     | 
| 
       227 
     | 
    
         
            -
             
     | 
| 
       228 
     | 
    
         
            -
             
     | 
| 
       229 
     | 
    
         
            -
             
     | 
| 
       230 
     | 
    
         
            -
             
     | 
| 
       231 
     | 
    
         
            -
             
     | 
| 
       232 
     | 
    
         
            -
             
     | 
| 
       233 
     | 
    
         
            -
             
     | 
| 
       234 
     | 
    
         
            -
             
     | 
| 
       235 
     | 
    
         
            -
             
     | 
| 
       236 
     | 
    
         
            -
             
     | 
| 
       237 
     | 
    
         
            -
             
     | 
| 
       238 
     | 
    
         
            -
            }
         
     | 
| 
       239 
     | 
    
         
            -
             
     | 
| 
       240 
     | 
    
         
            -
            /!-[ Stating Http Infomation ]-!/
         
     | 
| 
       241 
     | 
    
         
            -
             
     | 
| 
       242 
     | 
    
         
            -
            express.set('DFP', (process.env.PORT || process.env.port || 1932));
         
     | 
| 
       243 
     | 
    
         
            -
            express.use(function(req, res, next) {
         
     | 
| 
       244 
     | 
    
         
            -
             
     | 
| 
       245 
     | 
    
         
            -
             
     | 
| 
       246 
     | 
    
         
            -
             
     | 
| 
       247 
     | 
    
         
            -
             
     | 
| 
       248 
     | 
    
         
            -
             
     | 
| 
       249 
     | 
    
         
            -
             
     | 
| 
       250 
     | 
    
         
            -
             
     | 
| 
       251 
     | 
    
         
            -
             
     | 
| 
       252 
     | 
    
         
            -
             
     | 
| 
       253 
     | 
    
         
            -
             
     | 
| 
       254 
     | 
    
         
            -
             
     | 
| 
      
 197 
     | 
    
         
            +
            // var css = readFileSync(join(__dirname, 'Extra', 'Html', 'Classic', 'style.css'));
         
     | 
| 
      
 198 
     | 
    
         
            +
            // var js = readFileSync(join(__dirname, 'Extra', 'Html', 'Classic', 'script.js'));
         
     | 
| 
      
 199 
     | 
    
         
            +
             
     | 
| 
      
 200 
     | 
    
         
            +
            // /!-[ Function Generate HTML Template ]-!/
         
     | 
| 
      
 201 
     | 
    
         
            +
             
     | 
| 
      
 202 
     | 
    
         
            +
            // /**
         
     | 
| 
      
 203 
     | 
    
         
            +
            //  * It returns a string of HTML code.
         
     | 
| 
      
 204 
     | 
    
         
            +
            //  * @param UserName - The username of the user
         
     | 
| 
      
 205 
     | 
    
         
            +
            //  * @param Type - The type of user, either "Free" or "Premium"
         
     | 
| 
      
 206 
     | 
    
         
            +
            //  * @param link - The link to the music you want to play
         
     | 
| 
      
 207 
     | 
    
         
            +
            //  * @returns A HTML file
         
     | 
| 
      
 208 
     | 
    
         
            +
            //  */
         
     | 
| 
      
 209 
     | 
    
         
            +
             
     | 
| 
      
 210 
     | 
    
         
            +
            // function ClassicHTML(UserName,Type,link) {
         
     | 
| 
      
 211 
     | 
    
         
            +
            //     return `<!DOCTYPE html>
         
     | 
| 
      
 212 
     | 
    
         
            +
            //     <html lang="en" >
         
     | 
| 
      
 213 
     | 
    
         
            +
            //         <head>
         
     | 
| 
      
 214 
     | 
    
         
            +
            //         <meta charset="UTF-8">
         
     | 
| 
      
 215 
     | 
    
         
            +
            //         <title>Horizon</title>
         
     | 
| 
      
 216 
     | 
    
         
            +
            //         <link rel="stylesheet" href="./style.css">
         
     | 
| 
      
 217 
     | 
    
         
            +
            //     </head>
         
     | 
| 
      
 218 
     | 
    
         
            +
            //     <body>
         
     | 
| 
      
 219 
     | 
    
         
            +
            //         <center>
         
     | 
| 
      
 220 
     | 
    
         
            +
            //             <marquee><b>waiting for u :d</b></marquee>
         
     | 
| 
      
 221 
     | 
    
         
            +
            //             <h2>Horizon User Infomation</h2>
         
     | 
| 
      
 222 
     | 
    
         
            +
            //             <h3>UserName: ${UserName} | Type: ${Type}</h3>
         
     | 
| 
      
 223 
     | 
    
         
            +
            //             <canvas id="myCanvas"></canvas>
         
     | 
| 
      
 224 
     | 
    
         
            +
            //             <script  src="./script.js"></script>
         
     | 
| 
      
 225 
     | 
    
         
            +
            //             <footer class="footer">
         
     | 
| 
      
 226 
     | 
    
         
            +
            //                 <div id="music">
         
     | 
| 
      
 227 
     | 
    
         
            +
            //                     <audio autoplay="false" controls="true" loop="true" src="${link}" __idm_id__="5070849">Your browser does not support the audio element.</audio>
         
     | 
| 
      
 228 
     | 
    
         
            +
            //                     <br><b>Session ID:</b> ${global.Fca.Require.Security.create().uuid}<br>
         
     | 
| 
      
 229 
     | 
    
         
            +
            //                     <br>Thanks For Using <b>fca-priyansh</b> - From <b>Priyansh</b> <3<br>
         
     | 
| 
      
 230 
     | 
    
         
            +
            //                 </div>
         
     | 
| 
      
 231 
     | 
    
         
            +
            //             </footer>
         
     | 
| 
      
 232 
     | 
    
         
            +
            //             </div>
         
     | 
| 
      
 233 
     | 
    
         
            +
            //         </center>
         
     | 
| 
      
 234 
     | 
    
         
            +
            //     </html>
         
     | 
| 
      
 235 
     | 
    
         
            +
            //     </body>`
         
     | 
| 
      
 236 
     | 
    
         
            +
            //     //lazy to change
         
     | 
| 
      
 237 
     | 
    
         
            +
            // }
         
     | 
| 
      
 238 
     | 
    
         
            +
             
     | 
| 
      
 239 
     | 
    
         
            +
            // /!-[ Stating Http Infomation ]-!/
         
     | 
| 
      
 240 
     | 
    
         
            +
             
     | 
| 
      
 241 
     | 
    
         
            +
            // express.set('DFP', (process.env.PORT || process.env.port || 1932));
         
     | 
| 
      
 242 
     | 
    
         
            +
            // express.use(function(req, res, next) {
         
     | 
| 
      
 243 
     | 
    
         
            +
            //     switch (req.url.split('?')[0]) {
         
     | 
| 
      
 244 
     | 
    
         
            +
            //         case '/script.js': {
         
     | 
| 
      
 245 
     | 
    
         
            +
            //             res.writeHead(200, { 'Content-Type': 'text/javascript' });
         
     | 
| 
      
 246 
     | 
    
         
            +
            //                 res.write(js);
         
     | 
| 
      
 247 
     | 
    
         
            +
            //             break;
         
     | 
| 
      
 248 
     | 
    
         
            +
            //         }
         
     | 
| 
      
 249 
     | 
    
         
            +
            //         case '/style.css': {
         
     | 
| 
      
 250 
     | 
    
         
            +
            //             res.writeHead(200, { 'Content-Type': 'text/css' });
         
     | 
| 
      
 251 
     | 
    
         
            +
            //                 res.write(css);
         
     | 
| 
      
 252 
     | 
    
         
            +
            //             break;
         
     | 
| 
      
 253 
     | 
    
         
            +
            //         }
         
     | 
| 
       255 
254 
     | 
    
         
             
                    // case '/History': {
         
     | 
| 
       256 
255 
     | 
    
         
             
                    //     if (req.query.PassWord == process.env.REPL_OWNER) {
         
     | 
| 
       257 
256 
     | 
    
         
             
                    //         res.writeHead(200, { 'Content-Type': 'application/json charset=utf-8' });
         
     |