Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,24 @@ Check out the [deployment documentation](https://nuxt.com/docs/getting-started/d
A browser-based application for Bitrix24.

## Required Scopes

The following permissions must be enabled in the application settings:
* `crm` — access to CRM entities.
* `user_brief` — access to basic user profile data.

## Configuration
When registering the application in the Bitrix24 Partner Portal or as a local app, use the following endpoints:

When registering the application in the Bitrix24 Partner Portal or as a local app, use the following endpoints:

| Parameter | URL |
| :--- | :--- |
| **Application URL** | `https://your-app.example.com` |
| **Installation URL** | `https://your-app.example.com/install` |

## Getting Started
1. Open your **Bitrix24 account**.
2. Go to **Applications** -> **Add Application**.

1. Open your **Bitrix24**.
2. Go to **Applications** -> **Add Application**
3. Select **Local Application**
4. Fill in the URLs provided above and check the required **Scopes**.
5. Click **Save** and open the app.
Expand Down
2 changes: 1 addition & 1 deletion app/components/home/HomeChart.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const xTicks = (i: number) => {
}

const isOneCurrency = computed(() => {
return currencyListData.value.length < 2
return currencyListData.value.length === 1
})

const firstCurrency = computed(() => {
Expand Down
2 changes: 1 addition & 1 deletion app/composables/useDealStats/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const mapStatus: Record<Semantic, SaleStatus> = {
* @param b24 - B24Frame instance for executing queries
* @param start - Interval start (time is set to 00:00:00)
* @param end - Interval end (time is set to 23:59:59)
* @param defLocale - Default locale
* @param defaultCurrency - Default locale
* @param cb - Optional callback called after processing each page of data
* @returns Object with aggregated deal data
*
Expand Down
8 changes: 6 additions & 2 deletions app/composables/useDealStats/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,15 @@ const _useDealStats = () => {
const { locale } = useI18n()

const range = shallowRef<Range>({
start: sub(new Date(), { days: 7 }),
start: sub(new Date(), { months: 6 }),
end: new Date()
})

const period = ref<Period>('daily')
/**
* @see periodsData
* @see app/components/home/HomeDateRangePicker.vue:14
*/
const period = ref<Period>('weekly')
const stats = ref<Stat[]>([])
const chart = ref<DataRecord[]>([])
const sales = ref<Sale[]>([])
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"dependencies": {
"@bitrix24/b24icons-vue": "^2.0.7",
"@bitrix24/b24ui-nuxt": "^2.5.2",
"@bitrix24/b24jssdk": "^1.0.4",
"@bitrix24/b24jssdk-nuxt": "^1.0.4",
"@bitrix24/b24jssdk": "^1.0.5",
"@bitrix24/b24jssdk-nuxt": "^1.0.5",
"@internationalized/date": "^3.12.0",
"@tanstack/table-core": "^8.21.3",
"@tanstack/vue-table": "^8.21.3",
Expand Down
22 changes: 11 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.