Skip to content

Commit

Permalink
Merge pull request #1012 from aziontech/revert-1011-dev
Browse files Browse the repository at this point in the history
Revert "DEPLOY 2024.04.19"
  • Loading branch information
matheus-sunderhus authored Apr 19, 2024
2 parents 4acef05 + ebb0c80 commit db9222a
Show file tree
Hide file tree
Showing 171 changed files with 1,376 additions and 6,660 deletions.
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"],
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
}
23 changes: 22 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,28 @@
rel="icon"
href="/favicon.ico"
/>
<!-- Font preloads -->
<link
rel="preload"
href="https://fonts.azion.com/roboto/roboto-regular.woff"
as="font"
type="font/woff"
crossorigin
/>
<link
rel="preload"
href="https://fonts.azion.com/roboto-mono/roboto-mono-regular.ttf"
as="font"
type="font/woff"
crossorigin
/>
<link
rel="preload"
href="https://fonts.azion.com/roboto/roboto-black.woff"
as="font"
type="font/woff"
crossorigin
/>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
Expand Down Expand Up @@ -52,4 +74,3 @@
</noscript>
</body>
</html>

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "azion-platform-kit",
"version": "1.13.0",
"version": "1.12.0",
"private": true,
"type": "module",
"repository": {
Expand Down Expand Up @@ -69,7 +69,7 @@
"sass": "^1.68.0",
"start-server-and-test": "^2.0.0",
"tailwindcss": "^3.3.3",
"vite": "^4.5.3",
"vite": "^4.5.2",
"vitest": "^0.33.0",
"vitest-sonar-reporter": "^1.0.0"
}
Expand Down
3 changes: 0 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script setup>
import DynamicDialog from 'primevue/dynamicdialog'
import { computed, inject, watch } from 'vue'
import { RouterView, useRoute } from 'vue-router'
import ShellBlock from '@/templates/shell-block'
Expand All @@ -8,7 +7,6 @@
import { themeSelect } from '@/helpers'
import '@modules/real-time-metrics/helpers/convert-date'
import '@/helpers/store-handler'
/** @type {import('@/plugins/analytics/AnalyticsTrackerAdapter').AnalyticsTrackerAdapter} */
const tracker = inject('tracker')
Expand Down Expand Up @@ -41,7 +39,6 @@

<template>
<div class="flex flex-col">
<DynamicDialog />
<ShellBlock
v-slot:default="{ customClass }"
:isLogged="isLogged"
Expand Down
33 changes: 0 additions & 33 deletions src/assets/icons/azionicons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,36 +108,3 @@
.ai.ai-edge-orchestrator::before {
content: '\ea31';
}
.ai.ai-nextjs::before {
content: '\ea32';
}
.ai.ai-vue::before {
content: '\ea33';
}
.ai.ai-redis::before {
content: '\ea34';
}
.ai.ai-vite::before {
content: '\ea35';
}
.ai.ai-gatsby::before {
content: '\ea36';
}
.ai.ai-hexo::before {
content: '\ea37';
}
.ai.ai-eleventy::before {
content: '\ea38';
}
.ai.ai-react::before {
content: '\ea39';
}
.ai.ai-remix::before {
content: '\ea40';
}
.ai.ai-angular::before {
content: '\ea41';
}
.ai.ai-astro::before {
content: '\ea42';
}
Binary file modified src/assets/icons/azionicons.woff2
Binary file not shown.
19 changes: 0 additions & 19 deletions src/assets/svg/vtex-logo.vue

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@
}
}
}

.p-datatable-wrapper {
overscroll-behavior: revert !important;
}
}

.p-overlaypanel:has(.hidden-columns-panel) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@
}
}
}

.p-datatable-wrapper {
overscroll-behavior: revert !important;
}
}

.p-overlaypanel:has(.hidden-columns-panel) {
Expand Down
25 changes: 0 additions & 25 deletions src/helpers/azion-documentation-window-opener.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,6 @@ export const AZION_API_DOCUMENTATION = 'https://api.azion.com/'
export const AZION_CONTACT_SUPPORT = 'https://tickets.azion.com/en/support/home'
export const GOOGLE_AUTHENTICATOR_DOCUMENTATION =
'https://support.google.com/accounts/answer/1066447'
export const AZION_SITE = 'https://www.azion.com/'
export const AZION_BLOG = 'https://www.azion.com/en/blog/'
export const AZION_DISCORD = 'https://discord.com/invite/Yp9N7RMVZy'
export const AZION_GITHUB = 'https://github.com/aziontech/azion-platform-kit'
export const AZION_X = 'https://x.com/aziontech'

export const openAzionSite = () => {
window.open(AZION_SITE, '_blank')
}

export const openAzionBlog = () => {
window.open(AZION_BLOG, '_blank')
}

export const openAzionDiscord = () => {
window.open(AZION_DISCORD, '_blank')
}

export const openAzionGithub = () => {
window.open(AZION_GITHUB, '_blank')
}

export const openAzionX = () => {
window.open(AZION_X, '_blank')
}

export const openSearchResult = (searchText) => {
window.open(`${AZION_SEARCH_RESULT}/?q=${searchText}&filter=doc`)
Expand Down
3 changes: 0 additions & 3 deletions src/helpers/azion-onboarding-window-opener.js

This file was deleted.

17 changes: 0 additions & 17 deletions src/helpers/get-script-runner-image.js

This file was deleted.

17 changes: 0 additions & 17 deletions src/helpers/get-vulcan-presets.js

This file was deleted.

15 changes: 0 additions & 15 deletions src/helpers/go-to-classic-interface.js

This file was deleted.

24 changes: 2 additions & 22 deletions src/helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,9 @@ import {
openContactSupport,
openDocumentation,
openGoogleAuthenticatorAppDocumentation,
openSearchResult,
openAzionSite,
openAzionBlog,
openAzionDiscord,
openAzionGithub,
openAzionX
openSearchResult
} from './azion-documentation-window-opener'
import { azionPrivacyPolicyWindowOpener } from './azion-privacy-policy-opener'
import { azionOnboardingWindowOpener } from './azion-onboarding-window-opener'
import { azionTermsAndServicesWindowOpener } from './azion-terms-and-services-opener'
import { capitalizeFirstLetter } from './capitalize-first-letter'
import { clipboardWrite } from './clipboard'
Expand All @@ -24,15 +18,10 @@ import { metricsPlaygroundOpener } from './metrics-playground-opener'
import { parseCamelToSnake, parseSnakeToCamel } from './parse-api-body'
import { themeSelect } from './theme-select'
import { convertValueToDate, convertDateToLocalTimezone } from './convert-date'
import { getScriptRunnerImage } from './get-script-runner-image'
import { windowOpen } from './window-open'
import { getVulcanPresets } from './get-vulcan-presets'
import { goToClassicInterface } from './go-to-classic-interface'

export {
InviteSession,
azionPrivacyPolicyWindowOpener,
azionOnboardingWindowOpener,
azionTermsAndServicesWindowOpener,
capitalizeFirstLetter,
clipboardWrite,
Expand All @@ -47,18 +36,9 @@ export {
openDocumentation,
openGoogleAuthenticatorAppDocumentation,
openSearchResult,
openAzionSite,
openAzionBlog,
openAzionDiscord,
openAzionGithub,
openAzionX,
parseCamelToSnake,
parseSnakeToCamel,
themeSelect,
convertValueToDate,
convertDateToLocalTimezone,
getScriptRunnerImage,
windowOpen,
getVulcanPresets,
goToClassicInterface
convertDateToLocalTimezone
}
2 changes: 0 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import Tooltip from 'primevue/tooltip'
import ToastService from 'primevue/toastservice'
import { install as VueMonacoEditorPlugin } from '@guolao/vue-monaco-editor'
import * as HelpCenterServices from '@/services/help-center-services'
import DialogService from 'primevue/dialogservice'

import TrackerPlugin from '@/plugins/AnalyticsTrackerAdapterPlugin'

Expand All @@ -37,7 +36,6 @@ app.directive('tooltip', Tooltip)
app.use(ToastService)
app.use(pinia)
app.use(router)
app.use(DialogService)
app.use(TrackerPlugin)
app.use(VueMonacoEditorPlugin, {
paths: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { loadRealTimeMetricsData } from '@/services/real-time-metrics-services'
import { FILTERS_RULES } from '@modules/real-time-metrics/constants'
import BeholderService from '@services/real-time-metrics-services/fetch-metrics-data-from-beholder'
import Axios from 'axios'
import ParserObjectField from './parser-object-field'

import { capitalizeFirstLetter } from '@/helpers'

let abortController = null
let cancelRequest = null

/**
* A function to generate a GraphQL query for input fields of a given dataset.
Expand Down Expand Up @@ -65,23 +67,23 @@ const verifyWhitelistFields = ({ name, type: { name: typeName } }) => {
* @return {Promise<Array<Object>>} An array of objects representing the available filters.
*/
export default async function LoadDatasetAvailableFilters(dataset) {
if (abortController) abortController.abort()
abortController = new AbortController()
if (cancelRequest) cancelRequest.cancel()
const ReportsRequestToken = Axios.CancelToken
cancelRequest = ReportsRequestToken.source()

const datasetsQuery = inputListByDatasetQuery(dataset)

const graphqlQuery = {
query: datasetsQuery
}

const beholderService = new BeholderService({ cancelRequest })

let data = []

try {
const { __type: type } = await loadRealTimeMetricsData({
query: graphqlQuery,
signal: abortController.signal
})
data = type
const type = await beholderService.gql(graphqlQuery)
data = type.__type
} catch {
return []
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { loadRealTimeMetricsData } from '@/services/real-time-metrics-services'
import BeholderService from '@services/real-time-metrics-services/fetch-metrics-data-from-beholder'
import Axios from 'axios'
import { capitalizeFirstLetter } from '@/helpers'

let abortController = null
let cancelRequest = null

/**
* Checks if the given name is an alias and returns the corresponding value from the aliasMapping object.
Expand Down Expand Up @@ -43,17 +44,16 @@ const datasetListQuery = `query {
* @return {Object} The processed available filters information.
*/
export default async function LoadInfoAvailableFilters() {
if (abortController) abortController.abort()
abortController = new AbortController()
if (cancelRequest) cancelRequest.cancel()
const ReportsRequestToken = Axios.CancelToken
cancelRequest = ReportsRequestToken.source()

const graphqlQuery = { query: datasetListQuery }

const { __type: type } = await loadRealTimeMetricsData({
query: graphqlQuery,
signal: abortController.signal
})
const beholderService = new BeholderService({ cancelRequest })
const { __type } = await beholderService.gql(graphqlQuery)

const availableFilters = type.fields
const availableFilters = __type.fields
const newAvailableFilters = {}

availableFilters.forEach((item) => {
Expand Down
Loading

0 comments on commit db9222a

Please sign in to comment.