Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
refactoring base
Browse files Browse the repository at this point in the history
  • Loading branch information
ShirokamiRyzen committed Aug 13, 2023
1 parent 49f94f4 commit 8b42e0b
Show file tree
Hide file tree
Showing 15 changed files with 49 additions and 142 deletions.
11 changes: 0 additions & 11 deletions Alpis.js

This file was deleted.

11 changes: 0 additions & 11 deletions asset/Alpis.js

This file was deleted.

11 changes: 0 additions & 11 deletions asset/font/Alpis.js

This file was deleted.

11 changes: 0 additions & 11 deletions asset/image/Alpis.js

This file was deleted.

38 changes: 18 additions & 20 deletions controller/sendMail.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ var smtpTransport = nodemailer.createTransport({
//―――――――――――――――――――――――――――――――――――――――――― ┏ Send Reset Email┓ ―――――――――――――――――――――――――――――――――――――――――― \\

module.exports.sendResetEmail = async (email, token) => {
return new Promise(async(resolve, rejecet) => {
return new Promise(async(resolve, reject) => {

var url = `http://${domain}/reset-password?token=` + token;

await smtpTransport.sendMail({
from: fromsendemail,
to: email,
subject: "MENETAPKAN SEMULA KATA LALUAN ANDA",
subject: "RESET YOUR PASSWORD",
html: `
<!DOCTYPE html>
<html>
Expand Down Expand Up @@ -114,7 +114,7 @@ module.exports.sendResetEmail = async (email, token) => {
<tr>
<td align="center" valign="top" style="padding: 36px 24px;">
<a href="https://${domain}" target="_blank" style="display: inline-block;">
<img src="https://telegra.ph/file/f492065d44c897cd3836e.png" alt="Logo" border="0" width="100" style="display: block; width: 100px; max-width: 100px; min-width: 100px;">
<img src="https://id.gravatar.com/userimage/226391995/23facf0de1ede164f1333bccfd39788a.jpeg?size=256" alt="Logo" border="0" width="100" style="display: block; width: 100px; max-width: 100px; min-width: 100px;">
</a>
</td>
</tr>
Expand All @@ -128,7 +128,7 @@ module.exports.sendResetEmail = async (email, token) => {
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;">
<tr>
<td align="left" bgcolor="#ffffff" style="padding: 36px 24px 0; font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif; border-top: 3px solid #d4dadf;">
<h1 style="margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -1px; line-height: 48px;">Menetapkan Semula Kata Laluan Anda</h1>
<h1 style="margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -1px; line-height: 48px;">Reset Your Password</h1>
</td>
</tr>
</table>
Expand All @@ -144,7 +144,7 @@ module.exports.sendResetEmail = async (email, token) => {
<tr>
<td align="left" bgcolor="#ffffff" style="padding: 24px; font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px;">
<p style="margin: 0;">
Masalah melog masuk?<br>Menetapkan semula kata laluan anda adalah mudah.<br><br>Hanya tekan butang di bawah dan ikut arahan. Kami akan membantu anda beroperasi dalam masa yang singkat.</p>
Cant Login?<br>Reset your password.<br><br>Click button below to reset your password.</p>
</td>
</tr>
Expand All @@ -156,7 +156,7 @@ module.exports.sendResetEmail = async (email, token) => {
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" bgcolor="#1a82e2" style="border-radius: 6px;">
<a href="${url}" target="_blank" style="display: inline-block; padding: 16px 36px; font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif; font-size: 16px; color: #ffffff; text-decoration: none; border-radius: 6px;">Menetapkan semula kata laluan</a>
<a href="${url}" target="_blank" style="display: inline-block; padding: 16px 36px; font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif; font-size: 16px; color: #ffffff; text-decoration: none; border-radius: 6px;">Reset password</a>
</td>
</tr>
</table>
Expand All @@ -169,7 +169,7 @@ module.exports.sendResetEmail = async (email, token) => {
<tr>
<td align="left" bgcolor="#ffffff" style="padding: 24px; font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px; border-bottom: 3px solid #d4dadf">
<p style="margin: 0;">Aliff,<br> ${domain}</p>
<p style="margin: 0;">Ryzen,<br> ${domain}</p>
</td>
</tr>
Expand All @@ -185,7 +185,7 @@ module.exports.sendResetEmail = async (email, token) => {
<tr>
<td align="center" bgcolor="#e9ecef" style="padding: 12px 24px; font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; color: #666;">
<p style="margin: 0;">Jika anda tidak membuat permintaan ini, sila abaikan e-mel ini..</p>
<p style="margin: 0;">If you dont request this. Ignore the Email.</p>
</td>
</tr>
Expand Down Expand Up @@ -216,13 +216,13 @@ module.exports.sendResetEmail = async (email, token) => {
//―――――――――――――――――――――――――――――――――――――――――― ┏ Send Verify Email ┓ ―――――――――――――――――――――――――――――――――――――――――― \\

module.exports.sendVerifyEmail = async (email, token) => {
return new Promise(async(resolve, rejecet) => {
return new Promise(async(resolve, reject) => {
var url = `http://${domain}/verifyemail?token=` + token;

await smtpTransport.sendMail({
from: fromsendemail,
to: email,
subject: "SAHKAN EMAIL ANDA",
subject: "VERIFY YOUR EMAIL",
html: `
<!DOCTYPE html>
<html>
Expand Down Expand Up @@ -303,7 +303,7 @@ module.exports.sendVerifyEmail = async (email, token) => {
<body style="background-color: #e9ecef;">
<div class="preheader" style="display: none; max-width: 0; max-height: 0; overflow: hidden; font-size: 1px; line-height: 1px; color: #fff; opacity: 0;">
Sahkan E-mel Anda Dengan klik Buton Di Bawah.
Click button below to verify your email.
</div>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
Expand All @@ -315,7 +315,7 @@ module.exports.sendVerifyEmail = async (email, token) => {
<tr>
<td align="center" valign="top" style="padding: 36px 24px;">
<a href="https://${domain}" target="_blank" style="display: inline-block;">
<img src="https://telegra.ph/file/f492065d44c897cd3836e.png" alt="Logo" border="0" width="100" style="display: block; width: 100px; max-width: 100px; min-width: 100px;">
<img src="https://id.gravatar.com/userimage/226391995/23facf0de1ede164f1333bccfd39788a.jpeg?size=256" alt="Logo" border="0" width="100" style="display: block; width: 100px; max-width: 100px; min-width: 100px;">
</a>
</td>
</tr>
Expand All @@ -329,7 +329,7 @@ module.exports.sendVerifyEmail = async (email, token) => {
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;">
<tr>
<td align="left" bgcolor="#ffffff" style="padding: 36px 24px 0; font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif; border-top: 3px solid #d4dadf;">
<h1 style="margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -1px; line-height: 48px;">Sahkan Alamat E-mel Anda</h1>
<h1 style="margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -1px; line-height: 48px;">Verify your email</h1>
</td>
</tr>
</table>
Expand All @@ -344,7 +344,7 @@ module.exports.sendVerifyEmail = async (email, token) => {
<tr>
<td align="left" bgcolor="#ffffff" style="padding: 24px; font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px;">
<p style="margin: 0;">Terima kasih kerana guna rest api alpis, Sila tekan button di bawah untuk sahkan akaun anda.</p>
<p style="margin: 0;">Thank you for using Ryzen-API, Please press the button below to verify your account.</p>
</td>
</tr>
Expand All @@ -356,7 +356,7 @@ module.exports.sendVerifyEmail = async (email, token) => {
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" bgcolor="#1a82e2" style="border-radius: 6px;">
<a href="${url}" target="_blank" style="display: inline-block; padding: 16px 36px; font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif; font-size: 16px; color: #ffffff; text-decoration: none; border-radius: 6px;">Sahkan E-mel</a>
<a href="${url}" target="_blank" style="display: inline-block; padding: 16px 36px; font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif; font-size: 16px; color: #ffffff; text-decoration: none; border-radius: 6px;">Verify</a>
</td>
</tr>
</table>
Expand All @@ -369,7 +369,7 @@ module.exports.sendVerifyEmail = async (email, token) => {
<tr>
<td align="left" bgcolor="#ffffff" style="padding: 24px; font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px; border-bottom: 3px solid #d4dadf">
<p style="margin: 0;">Aliff,<br> ${domain}</p>
<p style="margin: 0;">Ryzen,<br> ${domain}</p>
</td>
</tr>
Expand All @@ -385,7 +385,7 @@ module.exports.sendVerifyEmail = async (email, token) => {
<tr>
<td align="center" bgcolor="#e9ecef" style="padding: 12px 24px; font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; color: #666;">
<p style="margin: 0;">Anda menerima e-mel ini kerana kami menerima permintaan untuk pengesahan akaun untuk akaun anda. Jika anda tidak meminta pengesahan akaun anda boleh memadamkan e-mel ini dengan selamat.</p>
<p style="margin: 0;">You are receiving this email because we received a request for account verification for your account. If you do not request account verification you can safely delete this email.</p>
</td>
</tr>
Expand All @@ -411,6 +411,4 @@ module.exports.sendVerifyEmail = async (email, token) => {

})

}

//―――――――――――――――――――――――――――――――――――――――――― ┏ Make by Alip ┓ ―――――――――――――――――――――――――――――――――――――――――― \\
}
11 changes: 0 additions & 11 deletions lib/Alpis.js

This file was deleted.

11 changes: 0 additions & 11 deletions lib/api/Alpis.js

This file was deleted.

2 changes: 1 addition & 1 deletion lib/api/apidl.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function sfilemobi(url) {
}

function musically(URL) {
return new Promise((resolve, rejecet) => {
return new Promise((resolve, reject) => {
axios.get('https://musicaldown.com/id', {
headers: {
'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "rest-api-alpis",
"name": "Ryzen-API",
"version": "2.0.0",
"description": "make by alip free rest api",
"main": "index.js",
Expand Down
11 changes: 0 additions & 11 deletions public/Alpis.js

This file was deleted.

Binary file modified public/images/favicon.ico
Binary file not shown.
Binary file modified public/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 0 additions & 11 deletions routes/Alpis.js

This file was deleted.

Loading

0 comments on commit 8b42e0b

Please sign in to comment.