Skip to content

Commit

Permalink
feat: make compactible with stable version of AdonisJS 5
Browse files Browse the repository at this point in the history
  • Loading branch information
ammezie committed May 14, 2021
1 parent a175a3b commit 9e79b56
Show file tree
Hide file tree
Showing 7 changed files with 2,285 additions and 61 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
## Table of contents

- [Adonis Stripe](#adonis-stripe)
- [Installation](#installation)
- [Usage](#usage)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

# Adonis Stripe

> Stripe provider for AdonisJS 5
Expand Down
11 changes: 11 additions & 0 deletions instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
The package has been configured successfully. The Adonis Stripe configuration stored inside `config/stripe.ts` file relies on the following environment variables, and hence we recommend validating them.

Open the `env.ts` file and paste the following code inside the `Env.rules` object.

```ts
STRIPE_SECRET_KEY: Env.schema.string()
STRIPE_PUBLIC_KEY: Env.schema.string()
STRIPE_WEBHOOK_SECRET: Env.schema.string()
STRIPE_API_VERSION: Env.schema.string()
STRIPE_TYPESCRIPT: Env.schema.string()
```
156 changes: 156 additions & 0 deletions npm-audit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
<!doctype html>
<html lang="en">

<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<!-- Bootstrap CSS -->
<link rel="stylesheet"
href="https://unpkg.com/bootstrap-material-design@4.1.1/dist/css/bootstrap-material-design.min.css"
integrity="sha384-wXznGJNEXNG1NFsbm0ugrLFMQPWswR3lds2VeinahP8N0zJw9VWSopbjv2x7WCvX" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs4/dt-1.10.20/datatables.min.css" />
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.16.2/build/styles/atom-one-dark.min.css">

<title>NPM Audit Report</title>
<meta name="description" content="0 known vulnerabilities found.">

<style>
pre {
background-color: #333333;
padding: 15px;
}

pre code {
color: #fff;
}
</style>

</head>

<body class="mb-3">
<div class="container">
<h1 class="mt-5 text-center">NPM Audit Report</h1>

<div class="text-center">
<div class="card-deck my-3">
<div class="card">
<div class="card-body">
<h5 class="card-title">
0
</h5>
<p class="card-text">Known vulnerabilities</p>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">
10
</h5>
<p class="card-text">Dependencies</p>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">
May 14th 2021, 8:38:12 pm
</h5>
<p class="card-text">Last updated</p>
</div>
</div>
</div>
<div class="card-deck my-3">
<div class="card">
<div class="card-body">
<h5 class="card-title">
0
</h5>
<p class="card-text">
<span class="badge badge-danger">critical</span>
</p>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">
0
</h5>
<p class="card-text">
<span class="badge badge-warning">high</span>
</p>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">
0
</h5>
<p class="card-text">
<span class="badge badge-secondary">moderate</span>
</p>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">
0
</h5>
<p class="card-text">
<span class="badge badge-primary">low</span>
</p>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">
0
</h5>
<p class="card-text">
<span class="badge badge-info">info</span>
</p>
</div>
</div>
</div>
</div>

<div class="row">
<div class="col">

<table id="advisories" class="table">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Module</th>
<th scope="col">Severity</th>
<th scope="col">CVEs</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>



<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<script type="text/javascript" src="https://cdn.datatables.net/v/bs4/dt-1.10.20/datatables.min.js"></script>

<script>
$(document).ready(function () {
$('#advisories').DataTable({
order: [[2, 'asc']]
});
});
</script>
</body>

</html>
Loading

0 comments on commit 9e79b56

Please sign in to comment.