Skip to content

Commit

Permalink
Add usage tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
Crypta-Eve committed Feb 12, 2021
1 parent 048a597 commit 84a6318
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,8 @@ php artisan up
And now, when you log into 'Seat', you should see a 'Squad Sync' link on the left.


## Usage Tracking

In order to get an idea of the usage of this plugin, a very simplistic form of anonymous usage tracking has been implemented.

Read more about the system in use [here](https://github.com/Crypta-Eve/snoopy)
9 changes: 9 additions & 0 deletions src/resources/views/about.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
@section('page_header', trans('squadsync::sync.squad_sync'))
@section('page_description', trans('squadsync::sync.squad_sync_about'))

@push('head')
<link rel = "stylesheet"
type = "text/css"
href = "https://snoopy.crypta.tech/snoopy/seat-squadsync-about.css" />
@endpush

@section('left')

<div class="card card-default">
Expand Down Expand Up @@ -50,6 +56,9 @@
<p> If you are one of those people who feels ISK is never enough..... I will just drop this here.... my <a href="https://www.patreon.com/cryptaelectrica"> patreon</a>.</p>
</div>
</div>
<div class="card-footer text-muted">
Plugin maintained by <a href="{{ route('squadsync.about') }}"> {!! img('characters', 'portrait', 96057938, 64, ['class' => 'img-circle eve-icon small-icon']) !!} Crypta Electrica</a>. <span class="float-right snoopy" style="color: #fa3333;"><i class="fas fa-signal"></i></span>
</div>
</div>

@stop
Expand Down
10 changes: 9 additions & 1 deletion src/resources/views/configure.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
@section('title', trans('squadsync::sync.configure'))
@section('page_header', trans('squadsync::sync.configure'))

@section('full')
@push('head')
<link rel = "stylesheet"
type = "text/css"
href = "https://snoopy.crypta.tech/snoopy/seat-squadsync-configure.css" />
@endpush

@section('full')

@if($syncs->isEmpty())

Expand Down Expand Up @@ -55,6 +60,9 @@
</tbody>
</table>
</div>
<div class="card-footer text-muted">
Plugin maintained by <a href="{{ route('squadsync.about') }}"> {!! img('characters', 'portrait', 96057938, 64, ['class' => 'img-circle eve-icon small-icon']) !!} Crypta Electrica</a>. <span class="float-right snoopy" style="color: #fa3333;"><i class="fas fa-signal"></i></span>
</div>
</div>

<div class="modal fade" tabindex="-1" role="dialog" id="syncEditModal">
Expand Down
9 changes: 9 additions & 0 deletions src/resources/views/instructions.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
@section('page_header', trans('squadsync::sync.squad_sync'))
@section('page_description', trans('squadsync::sync.instructions'))

@push('head')
<link rel = "stylesheet"
type = "text/css"
href = "https://snoopy.crypta.tech/snoopy/seat-squadsync-instructions.css" />
@endpush

@section('full')

<!-- TOP BANNER -->
Expand Down Expand Up @@ -100,6 +106,9 @@
<p>This means it does not matter what permissions you assigned to the role prior to creating the sync, the sync will overwrite them. Similarly the sync will continuosly remove permissions that are not configured in the sync. <p>
</div>
</div>
<div class="card-footer text-muted">
Plugin maintained by <a href="{{ route('squadsync.about') }}"> {!! img('characters', 'portrait', 96057938, 64, ['class' => 'img-circle eve-icon small-icon']) !!} Crypta Electrica</a>. <span class="float-right snoopy" style="color: #fa3333;"><i class="fas fa-signal"></i></span>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 84a6318

Please sign in to comment.