mirror of
https://github.com/plausible/analytics.git
synced 2024-12-22 17:11:36 +03:00
425975efec
* Adds New Dark Mode Assets * Moves triangle for dropdown to a reasonable position * Majority .eex dark implementation * Fixes Logo Positioning * Adds theme flag to user schema, uses it * Uses correct variables for theme applicator script * Minor missed theme changes/fallbacks * Individual Component Support + Theme Context * Sources Tab Support This was a pain to test D: * Partial Stats Sections Support * More of stats modules supported * Modal +table support * Improves some Flatpickr in light theme, supports dark theme * Fixes missed settings tab colors * Finishes Devices module support * Fixes bar graph colors * Better colorizes maps module * Undoes colorized bars (they looked bad, on second thought) * Fixes loading indicator * Finishes conversions module * Adds changelog entry The PR number could be wrong, will double check * Fixes missed header color * Fixes naming of migration and removes static alter * Does migration correctly As I said, my Elixir is pretty weak heh * Adds support for spike notifications setting * Improves contrast and visibility for email settings * Resolves @ukutaht's comments on #467 * Fixes missing dark style * Found one more missed dark element (shared links) * Formatting fixes
33 lines
2.2 KiB
Elixir
33 lines
2.2 KiB
Elixir
<div class="sm:rounded-md sm:overflow-hidden shadow">
|
|
<div class="bg-white dark:bg-gray-800 py-6 px-4 space-y-6 sm:p-6">
|
|
<div>
|
|
<h2 class="text-lg leading-6 font-medium text-gray-900 dark:text-gray-100">Danger zone</h2>
|
|
<p class="mt-1 text-sm leading-5 text-gray-500 dark:text-gray-200">Desctructive actions below can result in irrecoverable data loss. Be careful.</p>
|
|
</div>
|
|
<li class="py-4 flex items-center justify-between space-x-4">
|
|
<div class="flex flex-col">
|
|
<p class="text-sm leading-5 font-medium text-gray-900 dark:text-gray-100">
|
|
Reset stats
|
|
</p>
|
|
<p class="text-sm leading-5 text-gray-500 dark:text-gray-200">
|
|
Removes all pageviews but keeps the site configuration
|
|
</p>
|
|
</div>
|
|
<%= link("Reset #{@site.domain} stats", to: "/#{URI.encode_www_form(@site.domain)}/stats", method: :delete, class: "inline-block mt-4 px-4 py-2 border border-gray-300 dark:border-gray-500 text-sm leading-5 font-medium rounded-md text-red-700 bg-white dark:bg-gray-800 hover:text-red-500 dark:hover:text-red-400 focus:outline-none focus:border-blue-300 focus:ring active:text-red-800 active:bg-gray-50 transition ease-in-out duration-150", data: [confirm: "Resetting the stats cannot be reversed. Are you sure?"]) %>
|
|
</li>
|
|
<div class="border-b border-gray-200 dark:border-gray-500"></div>
|
|
|
|
<li class="py-4 flex items-center justify-between space-x-4">
|
|
<div class="flex flex-col">
|
|
<p class="text-sm leading-5 font-medium text-gray-900 dark:text-gray-100">
|
|
Delete site
|
|
</p>
|
|
<p class="text-sm leading-5 text-gray-500 dark:text-gray-200">
|
|
Removes all stats along with the site configuration
|
|
</p>
|
|
</div>
|
|
<%= link "Delete #{@site.domain}", to: "/#{URI.encode_www_form(@site.domain)}", method: :delete, class: "inline-block px-4 py-2 border border-transparent font-medium rounded-md text-red-700 dark:text-red-800 bg-red-100 dark:bg-red-200 hover:bg-red-50 dark:hover:bg-red-300 focus:outline-none focus:border-red-300 focus:ring active:bg-red-200 transition ease-in-out duration-150 sm:text-sm sm:leading-5", data: [confirm: "Deleting the site data cannot be reversed. Are you sure?"] %>
|
|
</li>
|
|
</div>
|
|
</div>
|