Skip to content

Commit

Permalink
chore: prettier output
Browse files Browse the repository at this point in the history
  • Loading branch information
mlabouardy committed Jul 6, 2023
1 parent 492fd74 commit 6b07bf3
Show file tree
Hide file tree
Showing 34 changed files with 104 additions and 102 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</h4>

[![Price](https://img.shields.io/badge/price-FREE-0098f7.svg)](https://github.com/tailwarden/komiser/blob/master/LICENSE) [![Docker Stars](https://img.shields.io/docker/pulls/mlabouardy/komiser.svg)](https://hub.docker.com/r/mlabouardy/komiser)
[![ELv2 License](https://img.shields.io/badge/license-ELv2-green)](LICENSE) [![CircleCI](https://circleci.com/gh/tailwarden/komiser/tree/master.svg?style=svg&circle-token=d35b1c7447995e60909b24fd316fef0988e76bc8)](https://circleci.com/gh/tailwarden/komiser/tree/master) [![Docker Stars](https://img.shields.io/github/issues/tailwarden/komiser.svg)](https://github.com/tailwarden/komiser/issues) [![Discord](https://badgen.net/badge/icon/discord?icon=discord&label)](https://discord.tailwarden.com/)
[![ELv2 License](https://img.shields.io/badge/license-ELv2-green)](LICENSE) [![Docker Stars](https://img.shields.io/github/issues/tailwarden/komiser.svg)](https://github.com/tailwarden/komiser/issues) [![Discord](https://badgen.net/badge/icon/discord?icon=discord&label)](https://discord.tailwarden.com/)

Komiser is an open-source cloud-agnostic resource manager. It integrates with multiple cloud providers (including AWS, Azure, Civo, Digital Ocean, OCI, Linode, Tencent and Scaleway), builds a cloud asset inventory, and helps you break down your cost at the resource level 💰

Expand All @@ -39,9 +39,9 @@ brew install komiser
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents**

- [What is Komiser?](#what-is-komiser-)
- [What is Komiser? 🤷](#what-is-komiser-)
- [Who is using it?](#who-is-using-it)
- [Getting started](#getting-started-)
- [Getting started 👇](#getting-started-)
- [Download](#download)
- [Installation on AWS](#installation-on-aws)
- [Connect Komiser CLI to your AWS account.](#connect-komiser-cli-to-your-aws-account)
Expand All @@ -52,14 +52,16 @@ brew install komiser
- [Installation on OCI](#installation-on-oci)
- [Installation on Digital Ocean](#installation-on-digital-ocean)
- [Installation on Linode](#installation-on-linode)
- [Installation on Tencent](#installation-on-tencent-cloud)
- [Installation on Tencent Cloud](#installation-on-tencent-cloud)
- [Installation on Scaleway](#installation-on-scaleway)
- [Documentation](#documentation-)
- [Documentation 📖](#documentation-)
- [Jump right in:](#jump-right-in)
- [Bugs and feature requests](#bugs-and-feature-requests-)
- [Roadmap and Contributing](#roadmap-and-contributing-%EF%B8%8F)
- [Users](#users-)
- [Versioning](#versioning-)
- [Bugs and feature requests 🐞](#bugs-and-feature-requests-)
- [Roadmap and Contributing 🛣️](#roadmap-and-contributing-️)
- [Watch! :](#watch-)
- [Users 🧑‍🤝‍🧑](#users-)
- [Versioning 🧮](#versioning-)
- [Contributors](#contributors)

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

Expand Down
2 changes: 1 addition & 1 deletion dashboard/components/banner/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function Banner({ githubStars }: BannerProps) {
alt="Github logo"
/>
<span>Star Komiser</span>
<div className="flex h-full items-center justify-center gap-2 border-l border-white/10 bg-white/10 py-2.5 px-3">
<div className="flex h-full items-center justify-center gap-2 border-l border-white/10 bg-white/10 px-3 py-2.5">
<StarIcon
width={16}
height={16}
Expand Down
2 changes: 1 addition & 1 deletion dashboard/components/card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type CardProps = {

function Card({ label, value, tooltip, icon, formatter }: CardProps) {
return (
<div className="relative flex w-full items-center gap-4 rounded-lg bg-white py-8 px-6 text-black-900 transition-colors">
<div className="relative flex w-full items-center gap-4 rounded-lg bg-white px-6 py-8 text-black-900 transition-colors">
<div className="rounded-lg bg-komiser-100 p-4" data-testid="icon">
{icon}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function DashboardCloudMapCard({ data }: DashboardCloudMapCardProps) {
data-testid="cloudMap"
className={`${
isOpen ? 'fixed inset-0 z-30 origin-left animate-scale' : ''
} w-full rounded-lg bg-white py-4 px-6 pb-6`}
} w-full rounded-lg bg-white px-6 py-4 pb-6`}
>
<div className="-mx-6 flex items-center justify-between border-b border-black-200/40 px-6 pb-4">
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function DashboardCloudMapError({ fetch }: DashboardCloudMapErrorProps) {
return (
<div
data-testid="error"
className="min-h-[396px] w-full rounded-lg bg-white py-4 px-6 pb-6"
className="min-h-[396px] w-full rounded-lg bg-white px-6 py-4 pb-6"
>
<div className="-mx-6 flex items-center justify-center gap-6 border-b border-black-200/40 px-6 pb-4">
<p className="text-sm text-black-400">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function DashboardCloudMapSkeleton() {
return (
<div
data-testid="loading"
className="min-h-[396px] w-full animate-pulse rounded-lg bg-white py-4 px-6 pb-6"
className="min-h-[396px] w-full animate-pulse rounded-lg bg-white px-6 py-4 pb-6"
>
<div className="-mx-6 flex items-center justify-between border-b border-black-200/40 px-6 pb-4">
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function DashboardCloudMap({
<>
{tooltip && sumOfResources && (
<div
className="absolute z-20 flex animate-fade-in flex-col gap-2 rounded-lg bg-[#013220] py-2 px-3 text-xs text-black-300 opacity-0"
className="absolute z-20 flex animate-fade-in flex-col gap-2 rounded-lg bg-[#013220] px-3 py-2 text-xs text-black-300 opacity-0"
style={{
top: `${tooltip.y - 60}px`,
left: `${tooltip.x + 10}px`
Expand All @@ -42,7 +42,7 @@ function DashboardCloudMap({
100
).toFixed(1)}%`}</span>
</span>
<div className="-mx-3 flex items-center gap-2 border-t border-white/30 px-3 pt-2 pb-1">
<div className="-mx-3 flex items-center gap-2 border-t border-white/30 px-3 pb-1 pt-2">
<span className="text-white">Click to discover the resources</span>
<LinkIcon className="w-[20px]" />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function DashboardCostExplorerError({
const rows: number[] = Array.from(Array(8).keys());

return (
<div className="w-full rounded-lg bg-white py-4 px-6 pb-6">
<div className="w-full rounded-lg bg-white px-6 py-4 pb-6">
<div className="-mx-6 flex items-center justify-center gap-6 border-b border-black-200/40 px-6 pb-4">
<p className="text-sm text-black-400">
There was an error loading the cost explorer.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function DashboardCostExplorerSkeleton() {
const rows: number[] = Array.from(Array(8).keys());
return (
<div className="w-full animate-pulse rounded-lg bg-white py-4 px-6 pb-6">
<div className="w-full animate-pulse rounded-lg bg-white px-6 py-4 pb-6">
<div className="-mx-6 flex flex-wrap items-center justify-between border-b border-black-200/40">
<div className="px-6 pb-4">
<div className="h-3 w-24 rounded-lg bg-komiser-200/50"></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function DashboardResourcesManagerCard({
chartData && chartData.labels && chartData.labels.length > 0;

return (
<div className="w-full rounded-lg bg-white py-4 px-6 pb-6">
<div className="w-full rounded-lg bg-white px-6 py-4 pb-6">
<div className="-mx-6 flex items-center justify-between border-b border-black-200/40 px-6 pb-4">
<div>
<p className="text-sm font-semibold text-black-900">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function DashboardResourcesManagerError({
fetch
}: DashboardResourcesManagerErrorProps) {
return (
<div className="flex min-h-[360px] w-full flex-col gap-4 overflow-hidden rounded-lg bg-white py-4 px-6 pb-6">
<div className="flex min-h-[360px] w-full flex-col gap-4 overflow-hidden rounded-lg bg-white px-6 py-4 pb-6">
<div className="-mx-6 flex items-center justify-center gap-6 border-b border-black-200/40 px-6 pb-4">
<p className="text-sm text-black-400">
There was an error loading the resources manager.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function DashboardResourcesManagerSkeleton() {
return (
<div className="flex min-h-[360px] w-full animate-pulse flex-col gap-4 overflow-hidden rounded-lg bg-white py-4 px-6 pb-6">
<div className="flex min-h-[360px] w-full animate-pulse flex-col gap-4 overflow-hidden rounded-lg bg-white px-6 py-4 pb-6">
<div className=" -mx-6 flex items-center justify-between border-b border-black-200/40">
<div className="px-6 pb-4">
<div className="h-3 w-48 rounded-lg bg-komiser-200/50"></div>
Expand Down
4 changes: 2 additions & 2 deletions dashboard/components/input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function Input({
<input
type={type}
name={name}
className={`peer w-full rounded bg-white px-4 pt-[1.75rem] pb-[0.75rem] text-sm text-black-900 caret-primary outline outline-black-200 focus:outline-2 focus:outline-primary ${
className={`peer w-full rounded bg-white px-4 pb-[0.75rem] pt-[1.75rem] text-sm text-black-900 caret-primary outline outline-black-200 focus:outline-2 focus:outline-primary ${
isValid === false && `outline-error-600 focus:outline-error-600`
}`}
placeholder=" "
Expand All @@ -90,7 +90,7 @@ function Input({
data-lpignore="true"
data-form-type="other"
/>
<span className="pointer-events-none absolute left-4 bottom-[1.925rem] origin-left scale-75 select-none font-normal text-black-300 transition-all peer-placeholder-shown:left-4 peer-placeholder-shown:bottom-[1.15rem] peer-placeholder-shown:scale-[87.5%] peer-focus:bottom-[1.925rem] peer-focus:scale-75">
<span className="pointer-events-none absolute bottom-[1.925rem] left-4 origin-left scale-75 select-none font-normal text-black-300 transition-all peer-placeholder-shown:bottom-[1.15rem] peer-placeholder-shown:left-4 peer-placeholder-shown:scale-[87.5%] peer-focus:bottom-[1.925rem] peer-focus:scale-75">
{label}
</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function InventoryActiveFilters({
return (
<>
{hasFilters && (
<div className="mb-6 flex flex-wrap items-center gap-x-4 gap-y-2 rounded-lg bg-white py-2 px-6">
<div className="mb-6 flex flex-wrap items-center gap-x-4 gap-y-2 rounded-lg bg-white px-6 py-2">
<div className="h-full text-sm text-black-400">Filters</div>
{displayedFilters &&
displayedFilters.map((activeFilter, idx) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function InventoryFilterDropdown({
{/* Dropdown transparent backdrop */}
<div
onClick={toggle}
className="fixed top-0 left-0 z-20 hidden h-screen w-screen animate-fade-in bg-transparent opacity-0 sm:block"
className="fixed left-0 top-0 z-20 hidden h-screen w-screen animate-fade-in bg-transparent opacity-0 sm:block"
></div>
<div
className={`absolute ${position} z-[21] inline-flex min-w-[16rem] max-w-[21rem] rounded-lg bg-white p-4 text-sm shadow-xl`}
Expand Down
4 changes: 2 additions & 2 deletions dashboard/components/inventory/components/InventoryLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function InventoryLayout({
<nav
className={`fixed ${
displayBanner ? 'mt-[145px]' : 'mt-[73px]'
} left-0 bottom-0 top-0 z-20 flex w-[17rem] flex-col gap-4 bg-white p-6`}
} bottom-0 left-0 top-0 z-20 flex w-[17rem] flex-col gap-4 bg-white p-6`}
>
<button
onClick={() => {
Expand Down Expand Up @@ -80,7 +80,7 @@ function InventoryLayout({
className="flex w-full items-center rounded-lg border border-black-200 px-4 py-3 pl-10 text-sm font-medium text-black-400 transition-colors hover:border-black-300 focus-visible:outline-primary"
/>
<div
className={`absolute top-[0.95rem] left-4 ${
className={`absolute left-4 top-[0.95rem] ${
query ? 'cursor-pointer' : ''
}`}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ function InventorySearchBar({
{!error && (
<div className="relative rounded-lg rounded-b-none">
{!query ? (
<div className="absolute top-[1.625rem] left-6">
<div className="absolute left-6 top-[1.625rem]">
<SearchIcon width={16} height={16} />
</div>
) : (
<div
className="absolute top-[1.7rem] left-6 cursor-pointer"
className="absolute left-6 top-[1.7rem] cursor-pointer"
onClick={() => setQuery('')}
>
<CloseIcon width={16} height={16} />
Expand All @@ -44,7 +44,7 @@ function InventorySearchBar({
data-form-type="other"
maxLength={64}
/>
<div className="absolute top-[14px] right-4">
<div className="absolute right-4 top-[14px]">
<ExportCSV setToast={setToast} />
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function InventoryStatsCards({
router.query.view ? 'lg:grid-cols-4' : 'lg:grid-cols-3'
} gap-8`}
>
<div className="relative flex w-full items-center gap-4 rounded-lg bg-white py-8 px-6 text-black-900 transition-colors">
<div className="relative flex w-full items-center gap-4 rounded-lg bg-white px-6 py-8 text-black-900 transition-colors">
<div className=" rounded-lg bg-komiser-100 p-4">
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down Expand Up @@ -67,7 +67,7 @@ function InventoryStatsCards({
</div>
<Tooltip>Number of active cloud services</Tooltip>
</div>
<div className="relative flex w-full items-center gap-4 rounded-lg bg-white py-8 px-6 text-black-900 transition-colors">
<div className="relative flex w-full items-center gap-4 rounded-lg bg-white px-6 py-8 text-black-900 transition-colors">
<div className=" rounded-lg bg-komiser-100 p-4">
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down Expand Up @@ -108,7 +108,7 @@ function InventoryStatsCards({
Number of regions where you have active cloud services
</Tooltip>
</div>
<div className="relative flex w-full items-center gap-4 rounded-lg bg-white py-8 px-6 text-black-900 transition-colors">
<div className="relative flex w-full items-center gap-4 rounded-lg bg-white px-6 py-8 text-black-900 transition-colors">
<div className=" rounded-lg bg-komiser-100 p-4">
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down Expand Up @@ -143,7 +143,7 @@ function InventoryStatsCards({
<Tooltip>Up-to-date monthly cost</Tooltip>
</div>
{router.query.view && hiddenResources && (
<div className="relative flex w-full items-center gap-4 rounded-lg bg-white py-8 px-6 text-black-900 transition-colors">
<div className="relative flex w-full items-center gap-4 rounded-lg bg-white px-6 py-8 text-black-900 transition-colors">
<div className=" rounded-lg bg-komiser-100 p-4">
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down
Loading

0 comments on commit 6b07bf3

Please sign in to comment.